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

This fixes https://savannah.gnu.org/bugs/?49750.
master
Benno Schulenberg 2016-12-03 17:47:37 +01:00
parent f920e0d30c
commit 372bd0f7dd
2 changed files with 4 additions and 3 deletions

View File

@ -2707,14 +2707,16 @@ int main(int argc, char **argv)
if (ISSET(CONST_UPDATE) && get_key_buffer_len() == 0)
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) {
reset_cursor();
curs_set(1);
wnoutrefresh(edit);
} else
edit_refresh();
/* Make sure the cursor is visible. */
curs_set(1);
focusing = TRUE;
/* Forget any earlier statusbar x position. */

View File

@ -3018,7 +3018,6 @@ void edit_refresh(void)
blank_line(edit, nlines, 0, COLS);
reset_cursor();
curs_set(1);
wnoutrefresh(edit);
refresh_needed = FALSE;