fix Meta-X's turning the keypad off under ncurses
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1532 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
ba6fd42b3c
commit
27863665ca
|
@ -34,6 +34,11 @@ CVS code -
|
||||||
- Change the message for the line wrapping toggle from "Auto
|
- Change the message for the line wrapping toggle from "Auto
|
||||||
wrap" to "Auto line wrap", to more clearly associate it with
|
wrap" to "Auto line wrap", to more clearly associate it with
|
||||||
Meta-L. (DLR)
|
Meta-L. (DLR)
|
||||||
|
- nano.c:
|
||||||
|
window_init()
|
||||||
|
- Set keypad() to TRUE regardless of whether PDCurses is being
|
||||||
|
used, as Meta-X apparently turns it off even under ncurses.
|
||||||
|
(DLR)
|
||||||
- nano.h:
|
- nano.h:
|
||||||
- Define KEY_SUSPEND as -1 when slang is used, as slang has no
|
- Define KEY_SUSPEND as -1 when slang is used, as slang has no
|
||||||
KEY_SUSPEND equivalent. When nano is compiled with slang
|
KEY_SUSPEND equivalent. When nano is compiled with slang
|
||||||
|
|
9
nano.c
9
nano.c
|
@ -229,19 +229,16 @@ void window_init(void)
|
||||||
if (bottomwin != NULL)
|
if (bottomwin != NULL)
|
||||||
delwin(bottomwin);
|
delwin(bottomwin);
|
||||||
|
|
||||||
/* Set up the main text window */
|
/* Set up the main text window. */
|
||||||
edit = newwin(editwinrows, COLS, 2, 0);
|
edit = newwin(editwinrows, COLS, 2, 0);
|
||||||
|
|
||||||
/* And the other windows */
|
/* And the other windows. */
|
||||||
topwin = newwin(2, COLS, 0, 0);
|
topwin = newwin(2, COLS, 0, 0);
|
||||||
bottomwin = newwin(3 - no_help(), COLS, LINES - 3 + no_help(), 0);
|
bottomwin = newwin(3 - no_help(), COLS, LINES - 3 + no_help(), 0);
|
||||||
|
|
||||||
#ifdef PDCURSES
|
/* This is so the keypad still works after a Meta-X, for example. */
|
||||||
/* Oops, I guess we need this again. Moved here so the keypad still
|
|
||||||
works after a Meta-X, for example */
|
|
||||||
keypad(edit, TRUE);
|
keypad(edit, TRUE);
|
||||||
keypad(bottomwin, TRUE);
|
keypad(bottomwin, TRUE);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(DISABLE_MOUSE) && defined(NCURSES_MOUSE_VERSION)
|
#if !defined(DISABLE_MOUSE) && defined(NCURSES_MOUSE_VERSION)
|
||||||
|
|
Loading…
Reference in New Issue