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)

00672e1d3f
This commit is contained in:
Jurica Bradaric
2016-08-27 21:24:46 +02:00
parent 68bcb32ec4
commit e74c2334f2
4 changed files with 38 additions and 3 deletions

View File

@@ -3661,7 +3661,7 @@ set_bool_option (
if ((State & INSERT) == 0)
need_start_insertmode = TRUE;
stop_insert_mode = FALSE;
} else {
} else if (old_value) { // only reset if it was set previously
need_start_insertmode = FALSE;
stop_insert_mode = TRUE;
if (restart_edit != 0 && mode_displayed)