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

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 #10352)
This commit is contained in:
zeertzjq
2022-05-04 17:51:50 +01:00
committed by Bram Moolenaar
parent 0395f88b84
commit cd5dbad184
3 changed files with 12 additions and 1 deletions

View File

@@ -448,7 +448,7 @@ edit(
if (update_Insstart_orig)
Insstart_orig = Insstart;
if (stop_insert_mode && !pum_visible())
if (stop_insert_mode && !ins_compl_active())
{
// ":stopinsert" used or 'insertmode' reset
count = 0;