From e08795e1ecf0b85751e9f41021603c39ef026d92 Mon Sep 17 00:00:00 2001 From: matveyt Date: Fri, 7 May 2021 15:00:17 +0200 Subject: patch 8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are set Problem: MS-Windows: cursor in wrong position when 'lazyredraw' and 'statusline' are set. Solution: Call compute_cmdrow(). (closes #8170, closes #8184) --- src/os_win32.c | 6 +++--- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/os_win32.c b/src/os_win32.c index 3bfeee66e..a743e714b 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -1656,10 +1656,10 @@ WaitForChar(long msec, int ignore_input) { if (csbi.dwCursorPosition.Y != msg_row) { - // The screen is now messed up, must redraw the - // command line and later all the windows. + // The screen is now messed up, must redraw the command + // line and later all the windows. redraw_all_later(CLEAR); - cmdline_row -= (msg_row - csbi.dwCursorPosition.Y); + compute_cmdrow(); redrawcmd(); } } diff --git a/src/version.c b/src/version.c index d2ffe6ff9..4770cb305 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2841, /**/ 2840, /**/ -- cgit v1.2.1