diff options
author | matveyt <matthewtarasov@gmail.com> | 2021-05-07 15:00:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-07 15:00:17 +0200 |
commit | e08795e1ecf0b85751e9f41021603c39ef026d92 (patch) | |
tree | b98e9c20e0563162d9e110cb4189e3f4e1f034f9 /src/os_win32.c | |
parent | 261417b872e6449fe1ca4e7d10f1cfd9736ea453 (diff) | |
download | vim-git-e08795e1ecf0b85751e9f41021603c39ef026d92.tar.gz |
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)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 6 |
1 files changed, 3 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(); } } |