From b9a6f09e3df40644e389b8dd0a2b7584f2f56a0b Mon Sep 17 00:00:00 2001
From: cancel <cancel@cancel.fm>
Date: Fri, 24 Jan 2020 02:51:28 +0900
Subject: [PATCH] Add comment

---
 tui_main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tui_main.c b/tui_main.c
index 05a7d99..dae5ebc 100644
--- a/tui_main.c
+++ b/tui_main.c
@@ -3688,6 +3688,11 @@ int main(int argc, char **argv) {
 #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;