diff options
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index d8908cca90..2ec8038731 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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) |