diff options
author | Omar El Halabi <omar_halabi25@hotmail.com> | 2023-11-10 05:20:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 22:20:26 -0600 |
commit | 9af03bcd47127a416aa6a125590b75adb5f53c3c (patch) | |
tree | 162affe49a5446ec9af7c84e10ce1faa62cdae51 /src/nvim/optionstr.c | |
parent | cd63a9addd6e1114c3524fa041ece560550cfe7b (diff) | |
download | rneovim-9af03bcd47127a416aa6a125590b75adb5f53c3c.tar.gz rneovim-9af03bcd47127a416aa6a125590b75adb5f53c3c.tar.bz2 rneovim-9af03bcd47127a416aa6a125590b75adb5f53c3c.zip |
fix(options): do not change inccommand during preview (#25462)
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 7aea47cfff..be76688e92 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -1569,6 +1569,9 @@ const char *did_set_iconstring(optset_T *args) /// The 'inccommand' option is changed. const char *did_set_inccommand(optset_T *args FUNC_ATTR_UNUSED) { + if (cmdpreview) { + return e_invarg; + } return did_set_opt_strings(p_icm, p_icm_values, false); } |