display: keep the cursor switched on when resizing the screen
This fixes https://savannah.gnu.org/bugs/?52149. Reported-by: David Lawrence Ramsey <pooka109@gmail.com>master
parent
762fb4bec5
commit
1bd17c44b0
|
@ -128,8 +128,6 @@ void get_key_buffer(WINDOW *win)
|
||||||
/* Read in the first character using whatever mode we're in. */
|
/* Read in the first character using whatever mode we're in. */
|
||||||
input = wgetch(win);
|
input = wgetch(win);
|
||||||
|
|
||||||
curs_set(0);
|
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (the_window_resized) {
|
if (the_window_resized) {
|
||||||
ungetch(input);
|
ungetch(input);
|
||||||
|
@ -138,8 +136,10 @@ void get_key_buffer(WINDOW *win)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (input == ERR && !waiting_mode)
|
if (input == ERR && !waiting_mode) {
|
||||||
|
curs_set(0);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
while (input == ERR) {
|
while (input == ERR) {
|
||||||
/* If we've failed to get a character MAX_BUF_SIZE times in a row,
|
/* If we've failed to get a character MAX_BUF_SIZE times in a row,
|
||||||
|
@ -159,6 +159,8 @@ void get_key_buffer(WINDOW *win)
|
||||||
input = wgetch(win);
|
input = wgetch(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
curs_set(0);
|
||||||
|
|
||||||
/* Increment the length of the keystroke buffer, and save the value
|
/* Increment the length of the keystroke buffer, and save the value
|
||||||
* of the keystroke at the end of it. */
|
* of the keystroke at the end of it. */
|
||||||
key_buffer_len++;
|
key_buffer_len++;
|
||||||
|
|
Loading…
Reference in New Issue