display: ensure that cursor is visible when compiled with --with-slang

This fixes https://savannah.gnu.org/bugs/?52651.
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
master
Benno Schulenberg 2017-12-16 19:20:11 +01:00
parent 0e0fb452a3
commit e1b0f2b275
2 changed files with 7 additions and 1 deletions

View File

@ -557,6 +557,7 @@ void finish(void)
blank_statusbar();
blank_bottombars();
wrefresh(bottomwin);
curs_set(1);
endwin();
/* Restore the old terminal settings. */
@ -584,6 +585,7 @@ void die(const char *msg, ...)
{
va_list ap;
curs_set(1);
endwin();
/* Restore the old terminal settings. */

View File

@ -185,8 +185,12 @@ void get_key_buffer(WINDOW *win)
* screen updates. */
doupdate();
if (reveal_cursor)
if (reveal_cursor) {
curs_set(1);
#ifdef USE_SLANG
doupdate();
#endif
}
/* Read in the first keystroke using whatever mode we're in. */
while (input == ERR) {