the signal_init() should be called before the other input mode-changing
code in handle_sigwinch() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1709 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
5520e85ee4
commit
d7db0a6dbf
|
@ -2939,6 +2939,10 @@ void handle_sigwinch(int s)
|
||||||
/* Turn cursor back on for sure. */
|
/* Turn cursor back on for sure. */
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
|
|
||||||
|
/* Set up the signal handlers again, so that the special control
|
||||||
|
* keys all work the same as before. */
|
||||||
|
signal_init();
|
||||||
|
|
||||||
/* Switch to cbreak mode and turn the keypad on, so that the keypad
|
/* Switch to cbreak mode and turn the keypad on, so that the keypad
|
||||||
* and input still work if we resized during verbatim input. */
|
* and input still work if we resized during verbatim input. */
|
||||||
#ifdef _POSIX_VDISABLE
|
#ifdef _POSIX_VDISABLE
|
||||||
|
@ -2947,10 +2951,6 @@ void handle_sigwinch(int s)
|
||||||
keypad(edit, TRUE);
|
keypad(edit, TRUE);
|
||||||
keypad(bottomwin, TRUE);
|
keypad(bottomwin, TRUE);
|
||||||
|
|
||||||
/* Set up the signal handlers again, so that the special control
|
|
||||||
* keys all work the same as before. */
|
|
||||||
signal_init();
|
|
||||||
|
|
||||||
/* Jump back to the main loop. */
|
/* Jump back to the main loop. */
|
||||||
siglongjmp(jmpbuf, 1);
|
siglongjmp(jmpbuf, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue