aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-30 20:01:43 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-01 09:28:39 -0500
commitbbaf721fc34008ca1d1e112392f16220d5dc2865 (patch)
tree07c745a7c7f43b6e83a4d39caa61320953241c9d
parent925ddd28391aa7bab06ec7e4f7aac34b727ee1d5 (diff)
downloadrneovim-bbaf721fc34008ca1d1e112392f16220d5dc2865.tar.gz
rneovim-bbaf721fc34008ca1d1e112392f16220d5dc2865.tar.bz2
rneovim-bbaf721fc34008ca1d1e112392f16220d5dc2865.zip
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
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}