mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
patch 8.0.1574: show cursor in wrong place when using popup menu
Problem: Show cursor in wrong place when using popup menu. (Wei Zhang) Solution: Force updating the cursor position. Fix skipping over unused entries.
This commit is contained in:
12
src/screen.c
12
src/screen.c
@@ -9471,7 +9471,17 @@ windgoto(int row, int col)
|
||||
void
|
||||
setcursor(void)
|
||||
{
|
||||
if (redrawing())
|
||||
setcursor_mayforce(FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set cursor to its position in the current window.
|
||||
* When "force" is TRUE also when not redrawing.
|
||||
*/
|
||||
void
|
||||
setcursor_mayforce(int force)
|
||||
{
|
||||
if (force || redrawing())
|
||||
{
|
||||
validate_cursor();
|
||||
windgoto(W_WINROW(curwin) + curwin->w_wrow,
|
||||
|
Reference in New Issue
Block a user