]> granicus.if.org Git - vim/commitdiff
patch 8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are set v8.2.2841
authormatveyt <matthewtarasov@gmail.com>
Fri, 7 May 2021 13:00:17 +0000 (15:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 7 May 2021 13:00:17 +0000 (15:00 +0200)
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
src/version.c

index 3bfeee66ec8ba6323dd2c246a407b63aa0fe9abd..a743e714b7dc3f59023f64d85bfe788f33749391 100644 (file)
@@ -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();
                }
            }
index d2ffe6ff9c18e91a5040d86144ea8d0fa75527d3..4770cb305d0c333b420c8b82b5d970307939ea88 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2841,
 /**/
     2840,
 /**/