Mercurial > vim
changeset 24604:b1ba40ea418d v8.2.2841
patch 8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are set
Commit: https://github.com/vim/vim/commit/e08795e1ecf0b85751e9f41021603c39ef026d92
Author: matveyt <matthewtarasov@gmail.com>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 May 2021 15:15:04 +0200 |
parents | 329b26aecc95 |
children | f5484f767f70 |
files | src/os_win32.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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(); } }