# HG changeset patch # User Bram Moolenaar # Date 1620393304 -7200 # Node ID b1ba40ea418db306aedb384ce66405b83d83e399 # Parent 329b26aecc95cfb4a1cb28e8e66318b2df635144 patch 8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are set Commit: https://github.com/vim/vim/commit/e08795e1ecf0b85751e9f41021603c39ef026d92 Author: matveyt Date: Fri May 7 15:00:17 2021 +0200 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) diff --git a/src/os_win32.c b/src/os_win32.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2841, +/**/ 2840, /**/ 2839,