nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit fdd92af3ac36552889b2fc52c958acca4412a478
parent dd009e0bc71e9cf5c29a1430ee9722b873f695b5
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 16 Mar 2024 17:17:33 +0100

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.

Diffstat:
Msrc/winio.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -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; }