fix(options): do not change inccommand during preview (#25462)

This commit is contained in:
Omar El Halabi
2023-11-10 05:20:26 +01:00
committed by GitHub
parent cd63a9addd
commit 9af03bcd47
2 changed files with 31 additions and 0 deletions

View File

@@ -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);
}