0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.4026: ml_get error with specific win_execute() command

Problem:    ml_get error with specific win_execute() command. (Sean Dewar)
Solution:   Check cursor and Visual area are OK.
This commit is contained in:
Bram Moolenaar
2022-01-07 14:08:03 +00:00
parent 834d41853e
commit e664a32701
3 changed files with 23 additions and 0 deletions

View File

@@ -743,6 +743,12 @@ f_win_execute(typval_T *argvars, typval_T *rettv)
// Update the status line if the cursor moved.
if (win_valid(wp) && !EQUAL_POS(curpos, wp->w_cursor))
wp->w_redr_status = TRUE;
// In case the command moved the cursor or changed the Visual area,
// check it is valid.
check_cursor();
if (VIsual_active)
check_pos(curbuf, &VIsual);
}
}