summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatveyt <matthewtarasov@gmail.com>2021-05-07 15:00:17 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-07 15:00:17 +0200
commite08795e1ecf0b85751e9f41021603c39ef026d92 (patch)
treeb98e9c20e0563162d9e110cb4189e3f4e1f034f9
parent261417b872e6449fe1ca4e7d10f1cfd9736ea453 (diff)
patch 8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are setv8.2.2841
Problem: MS-Windows: cursor in wrong position when 'lazyredraw' and 'statusline' are set. Solution: Call compute_cmdrow(). (closes #8170, closes #8184)
-rw-r--r--src/os_win32.c6
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 3bfeee66ec..a743e714b7 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 d2ffe6ff9c..4770cb305d 100644
--- 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,