shithub: orca

Download patch

ref: b9a6f09e3df40644e389b8dd0a2b7584f2f56a0b
parent: 1a5d32361723eef14f113199525b0afd2b9b2fd0
author: cancel <cancel@cancel.fm>
date: Thu Jan 23 21:51:28 EST 2020

Add comment

--- a/tui_main.c
+++ b/tui_main.c
@@ -3688,6 +3688,11 @@
 #endif
     }
 
+    // If we have the menus open, we'll let the menus do what they want with
+    // the input before the regular editor (which will be displayed
+    // underneath.) The menus may tell us to quit, that they didn't do anything
+    // with the input, or that they consumed the input and therefore we
+    // shouldn't pass the input key to the rest of the editing system.
     switch (tui_drive_menus(&t, key)) {
     case Tui_menus_nothing:
       break;