0
0
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:
Bram Moolenaar
2018-03-06 11:43:04 +01:00
parent 89894aa671
commit 987723e084
4 changed files with 19 additions and 6 deletions

View File

@@ -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,