0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.1428: cursor in wrong position when leaving insert mode

Problem:    Cursor in wrong position when leaving insert mode.
Solution:   Update the w_valid flags.  Position the cursor also when not
            redrawing. (closes #12137)
This commit is contained in:
Bram Moolenaar
2023-03-25 20:06:49 +00:00
parent 1f76138ff1
commit c174c2e58c
5 changed files with 31 additions and 1 deletions

View File

@@ -305,7 +305,7 @@ main
params.want_full_screen = FALSE;
/*
* When certain to start the GUI, don't check capabilities of terminal.
* When certain to start the GUI, don't check terminal capabilities.
* For GTK we can't be sure, but when started from the desktop it doesn't
* make sense to try using a terminal.
*/
@@ -1290,7 +1290,11 @@ main_loop(
* update cursor and redraw.
*/
if (skip_redraw || exmode_active)
{
skip_redraw = FALSE;
setcursor();
cursor_on();
}
else if (do_redraw || stuff_empty())
{
#ifdef FEAT_GUI