summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-19 15:53:26 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-19 15:53:26 +0000
commitcf660437add62d040d09678fca992a3da867d229 (patch)
tree730931d77435d6216ded66cba8f602b2d0dc34f6
parent09127460609a1bd6a93147f2837ba7e23205851a (diff)
patch-0.95.1.vikas.macro_function.1
-rw-r--r--curs_lib.c25
-rw-r--r--keymap.c2
2 files changed, 14 insertions, 13 deletions
diff --git a/curs_lib.c b/curs_lib.c
index 6d8df4bc..de10a986 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -244,23 +244,24 @@ void mutt_show_error (void)
void mutt_endwin (const char *msg)
{
-
+ if (!option (OPTNOCURSES))
+ {
#ifdef SLANG_CURSES
- CLEARLINE (LINES - 1);
- move (LINES - 1, 0)
+ CLEARLINE (LINES - 1);
+ move (LINES - 1, 0)
#else
- move (LINES - 1, COLS - 1);
- CLEARLINE (LINES - 1);
+ move (LINES - 1, COLS - 1);
+ CLEARLINE (LINES - 1);
#endif
-
- attrset (A_NORMAL);
- mutt_refresh ();
- endwin ();
-
+
+ attrset (A_NORMAL);
+ mutt_refresh ();
+ endwin ();
#ifndef SLANG_CURSES
- fputc ('\n', stdout);
+ fputc ('\n', stdout);
#endif
-
+ }
+
if (msg)
puts (msg);
}
diff --git a/keymap.c b/keymap.c
index 943ce54f..97bdb9c9 100644
--- a/keymap.c
+++ b/keymap.c
@@ -34,7 +34,6 @@ struct mapping_t Menus[] = {
{ "browser", MENU_FOLDER },
{ "compose", MENU_COMPOSE },
{ "editor", MENU_EDITOR },
- { "generic", MENU_GENERIC },
{ "index", MENU_MAIN },
{ "pager", MENU_PAGER },
{ "postpone", MENU_POST },
@@ -48,6 +47,7 @@ struct mapping_t Menus[] = {
{ "query", MENU_QUERY },
+ { "generic", MENU_GENERIC },
{ NULL, 0 }
};