Mercurial > vim
comparison src/screen.c @ 13400:c415cdd49ea4 v8.0.1574
patch 8.0.1574: show cursor in wrong place when using popup menu
commit https://github.com/vim/vim/commit/987723e084660290270b3c3d943eb13bd828d5da
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 6 11:43:04 2018 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 06 Mar 2018 11:45:05 +0100 |
parents | 69517d67421f |
children | 9b09f6e470e0 |
comparison
equal
deleted
inserted
replaced
13399:ad9ed174d094 | 13400:c415cdd49ea4 |
---|---|
9469 * Set cursor to its position in the current window. | 9469 * Set cursor to its position in the current window. |
9470 */ | 9470 */ |
9471 void | 9471 void |
9472 setcursor(void) | 9472 setcursor(void) |
9473 { | 9473 { |
9474 if (redrawing()) | 9474 setcursor_mayforce(FALSE); |
9475 } | |
9476 | |
9477 /* | |
9478 * Set cursor to its position in the current window. | |
9479 * When "force" is TRUE also when not redrawing. | |
9480 */ | |
9481 void | |
9482 setcursor_mayforce(int force) | |
9483 { | |
9484 if (force || redrawing()) | |
9475 { | 9485 { |
9476 validate_cursor(); | 9486 validate_cursor(); |
9477 windgoto(W_WINROW(curwin) + curwin->w_wrow, | 9487 windgoto(W_WINROW(curwin) + curwin->w_wrow, |
9478 curwin->w_wincol + ( | 9488 curwin->w_wincol + ( |
9479 #ifdef FEAT_RIGHTLEFT | 9489 #ifdef FEAT_RIGHTLEFT |