Add and fix Bug #51 :-)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@459 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/nano.c b/nano.c
index 19d9434..f151527 100644
--- a/nano.c
+++ b/nano.c
@@ -1644,6 +1644,13 @@
topwin = newwin(2, COLS, 0, 0);
bottomwin = newwin(3 - no_help(), COLS, LINES - 3 + no_help(), 0);
+#ifdef PDCURSES
+ /* Oops, I guess we need this again.
+ Moved here so the keypad still works after a Meta-X, for example */
+ keypad(edit, TRUE);
+ keypad(bottomwin, TRUE);
+#endif
+
}
void mouse_init(void)
@@ -2253,12 +2260,6 @@
edit_refresh();
reset_cursor();
-#ifdef PDCURSES
- /* Oops, I guess we need this again */
- keypad(edit, TRUE);
- keypad(bottomwin, TRUE);
-#endif
-
while (1) {
#ifndef _POSIX_VDISABLE