mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user