]> granicus.if.org Git - neomutt/commitdiff
Check for sigwinch in index before calling km_dokey, since for unknown
authorAdeodato Simó <asp16@alu.ua.es>
Wed, 21 Sep 2005 14:17:14 +0000 (14:17 +0000)
committerAdeodato Simó <asp16@alu.ua.es>
Wed, 21 Sep 2005 14:17:14 +0000 (14:17 +0000)
reasons km_dokey seems to eat the signal in some cases. [Not reproducible
in my ncurses environments - Brendan]. Closes: #1907.

curs_main.c

index 23507626d39b6166c9eb59f8b6fc3fb3a2a3046c..24ef28cb4dc7c97ba01c05124399a2f876a6a612 100644 (file)
@@ -589,10 +589,6 @@ int mutt_index_menu (void)
        move (menu->current - menu->top + menu->offset, COLS - 1);
       mutt_refresh ();
 
-      op = km_dokey (MENU_MAIN);
-
-      dprint(4, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__, op));
-
 #if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM)
       if (SigWinch)
       {
@@ -611,6 +607,10 @@ int mutt_index_menu (void)
       }
 #endif
 
+      op = km_dokey (MENU_MAIN);
+
+      dprint(4, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__, op));
+
       if (op == -1)
        continue; /* either user abort or timeout */