diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/optionstr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index b560275de7..c801ec0a26 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -1448,8 +1448,7 @@ const char *did_set_foldmethod(optset_T *args) { win_T *win = (win_T *)args->os_win; char **varp = (char **)args->os_varp; - if (check_opt_strings(*varp, p_fdm_values, false) != OK - || *win->w_p_fdm == NUL) { + if (check_opt_strings(*varp, p_fdm_values, false) != OK || **varp == NUL) { return e_invarg; } foldUpdateAll(win); |