diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-04 17:51:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-04 17:51:50 +0100 |
commit | cd5dbad184e8235beb13dcd8a22302da09db9766 (patch) | |
tree | de46398f8bc6cedcfb855133822614bb06993f2d /src/edit.c | |
parent | 0395f88b84b8917aeff1f7026cf968de0f55ba22 (diff) |
patch 8.2.4865: :startinsert right after :stopinsert may not workv8.2.4865
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)
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c index 61c1694836..65b760ba04 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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; |