display: add a wnoutrefresh() call for NetBSD, to force a cursor update

With NetBSD curses, when only the cursor is moved (without writing any
text), then a call of wnoutrefresh() is needed to make doupdate() move
the cursor.  Ncurses does not need this.

This addresses https://savannah.gnu.org/patch/?10438.
This commit is contained in:
Benno Schulenberg 2024-03-16 17:17:33 +01:00
parent dd009e0bc7
commit fdd92af3ac
1 changed files with 4 additions and 0 deletions

View File

@ -2534,6 +2534,10 @@ void place_the_cursor(void)
statusline(ALERT, "Misplaced cursor -- please report a bug");
#endif
#ifdef _CURSES_H_
wnoutrefresh(midwin); /* Only needed for NetBSD curses. */
#endif
openfile->current_y = row;
}