mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
vim-patch:8.2.4865: :startinsert right after :stopinsert may not work
Problem: :startinsert right after :stopinsert does not work when popup menu is still visible. Solution: Use ins_compl_active() instead of pum_visible(). (closes vim/vim#10352)cd5dbad184
(cherry picked from commit97d86c45af
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
1e28068d0d
commit
3b4881afc2
@@ -553,7 +553,7 @@ static int insert_check(VimState *state)
|
||||
Insstart_orig = Insstart;
|
||||
}
|
||||
|
||||
if (stop_insert_mode && !pum_visible()) {
|
||||
if (stop_insert_mode && !compl_started) {
|
||||
// ":stopinsert" used or 'insertmode' reset
|
||||
s->count = 0;
|
||||
return 0; // exit insert mode
|
||||
|
Reference in New Issue
Block a user