1
0
forked from aniani/vim

patch 7.4.1961

Problem:    When 'insertmode' is reset while doing completion the popup menu
            remains even though Vim is in Normal mode.
Solution:   Ignore stop_insert_mode when the popup menu is visible.  Don't set
            stop_insert_mode when 'insertmode' was already off. (Christian
            Brabandt)
This commit is contained in:
Bram Moolenaar
2016-06-26 18:38:13 +02:00
parent 04e2b4b0c4
commit 00672e1d3f
6 changed files with 46 additions and 2 deletions

View File

@@ -8001,7 +8001,8 @@ set_bool_option(
need_start_insertmode = TRUE;
stop_insert_mode = FALSE;
}
else
/* only reset if it was set previously */
else if (old_value)
{
need_start_insertmode = FALSE;
stop_insert_mode = TRUE;