0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

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)
This commit is contained in:
matveyt
2021-05-07 15:00:17 +02:00
committed by Bram Moolenaar
parent 261417b872
commit e08795e1ec
2 changed files with 5 additions and 3 deletions

View File

@@ -1656,10 +1656,10 @@ WaitForChar(long msec, int ignore_input)
{ {
if (csbi.dwCursorPosition.Y != msg_row) if (csbi.dwCursorPosition.Y != msg_row)
{ {
// The screen is now messed up, must redraw the // The screen is now messed up, must redraw the command
// command line and later all the windows. // line and later all the windows.
redraw_all_later(CLEAR); redraw_all_later(CLEAR);
cmdline_row -= (msg_row - csbi.dwCursorPosition.Y); compute_cmdrow();
redrawcmd(); redrawcmd();
} }
} }

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2841,
/**/ /**/
2840, 2840,
/**/ /**/