diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-09-17 14:37:42 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-09-25 21:29:12 +0200 |
commit | 6ca089fd8d91f31b621381abcc2f7ba8453e2474 (patch) | |
tree | 150e0910e95db9eb5f52a9ae97f62d229bea0da8 | |
parent | e74c2334f2bf7dccee337df20817b3351dbff3ec (diff) | |
download | rneovim-6ca089fd8d91f31b621381abcc2f7ba8453e2474.tar.gz rneovim-6ca089fd8d91f31b621381abcc2f7ba8453e2474.tar.bz2 rneovim-6ca089fd8d91f31b621381abcc2f7ba8453e2474.zip |
option.c: Fix linter errors.
-rw-r--r-- | src/nvim/option.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 2ec8038731..c795287125 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3658,14 +3658,16 @@ set_bool_option ( /* when 'insertmode' is set from an autocommand need to do work here */ else if ((int *)varp == &p_im) { if (p_im) { - if ((State & INSERT) == 0) - need_start_insertmode = TRUE; - stop_insert_mode = FALSE; + if ((State & INSERT) == 0) { + need_start_insertmode = true; + } + stop_insert_mode = false; } 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) - clear_cmdline = TRUE; /* remove "(insert)" */ + need_start_insertmode = false; + stop_insert_mode = true; + if (restart_edit != 0 && mode_displayed) { + clear_cmdline = true; // remove "(insert)" + } restart_edit = 0; } } |