Commit e1b0f2b2 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

This fixes https://savannah.gnu.org/bugs/?52651

.
Reported-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
parent 0e0fb452
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
...@@ -557,6 +557,7 @@ void finish(void) ...@@ -557,6 +557,7 @@ void finish(void)
blank_statusbar(); blank_statusbar();
blank_bottombars(); blank_bottombars();
wrefresh(bottomwin); wrefresh(bottomwin);
curs_set(1);
endwin(); endwin();
/* Restore the old terminal settings. */ /* Restore the old terminal settings. */
...@@ -584,6 +585,7 @@ void die(const char *msg, ...) ...@@ -584,6 +585,7 @@ void die(const char *msg, ...)
{ {
va_list ap; va_list ap;
curs_set(1);
endwin(); endwin();
/* Restore the old terminal settings. */ /* Restore the old terminal settings. */
......
...@@ -185,8 +185,12 @@ void get_key_buffer(WINDOW *win) ...@@ -185,8 +185,12 @@ void get_key_buffer(WINDOW *win)
* screen updates. */ * screen updates. */
doupdate(); doupdate();
if (reveal_cursor) if (reveal_cursor) {
curs_set(1); curs_set(1);
#ifdef USE_SLANG
doupdate();
#endif
}
/* Read in the first keystroke using whatever mode we're in. */ /* Read in the first keystroke using whatever mode we're in. */
while (input == ERR) { while (input == ERR) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment