Commit 372bd0f7 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

screen: switch the cursor back on only in the main loop

This fixes https://savannah.gnu.org/bugs/?49750.
parent f920e0d3
Showing with 4 additions and 3 deletions
+4 -3
...@@ -2707,14 +2707,16 @@ int main(int argc, char **argv) ...@@ -2707,14 +2707,16 @@ int main(int argc, char **argv)
if (ISSET(CONST_UPDATE) && get_key_buffer_len() == 0) if (ISSET(CONST_UPDATE) && get_key_buffer_len() == 0)
do_cursorpos(TRUE); do_cursorpos(TRUE);
/* Refresh either just the cursor or the entire edit window. */ /* Refresh just the cursor position or the entire edit window. */
if (!refresh_needed) { if (!refresh_needed) {
reset_cursor(); reset_cursor();
curs_set(1);
wnoutrefresh(edit); wnoutrefresh(edit);
} else } else
edit_refresh(); edit_refresh();
/* Make sure the cursor is visible. */
curs_set(1);
focusing = TRUE; focusing = TRUE;
/* Forget any earlier statusbar x position. */ /* Forget any earlier statusbar x position. */
......
...@@ -3018,7 +3018,6 @@ void edit_refresh(void) ...@@ -3018,7 +3018,6 @@ void edit_refresh(void)
blank_line(edit, nlines, 0, COLS); blank_line(edit, nlines, 0, COLS);
reset_cursor(); reset_cursor();
curs_set(1);
wnoutrefresh(edit); wnoutrefresh(edit);
refresh_needed = FALSE; refresh_needed = FALSE;
......
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