From bbaf721fc34008ca1d1e112392f16220d5dc2865 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 30 Oct 2020 20:01:43 -0400 Subject: vim-patch:8.2.1926: cannot use a space in 'spellfile' Problem: Cannot use a space in 'spellfile'. (Filipe Brandenburger) Solution: Permit using a space. (closes vim/vim#7230) https://github.com/vim/vim/commit/b2620202c7778d8c709941fb430eeeeab6e63a6a --- src/nvim/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/option.c b/src/nvim/option.c index d5ea358184..c112dc86d4 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2566,7 +2566,7 @@ static bool valid_spellfile(const char_u *val) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { for (const char_u *s = val; *s != NUL; s++) { - if (!vim_isfilec(*s) && *s != ',') { + if (!vim_isfilec(*s) && *s != ',' && *s != ' ') { return false; } } -- cgit