Skip to content

Commit b262020

Browse files
committed
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 #7230)
1 parent 6d96712 commit b262020

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/spell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4340,7 +4340,7 @@ valid_spellfile(char_u *val)
43404340
char_u *s;
43414341

43424342
for (s = val; *s != NUL; ++s)
4343-
if (!vim_isfilec(*s) && *s != ',')
4343+
if (!vim_isfilec(*s) && *s != ',' && *s != ' ')
43444344
return FALSE;
43454345
return TRUE;
43464346
}

src/testdir/gen_opt_test.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ let test_values = {
130130
\ 'selectmode': [['', 'mouse', 'key,cmd'], ['xxx']],
131131
\ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']],
132132
\ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']],
133-
\ 'spellfile': [['', 'file.en.add'], ['xxx', '/tmp/file']],
133+
\ 'spellfile': [['', 'file.en.add', '/tmp/dir\ with\ space/en.utf-8.add'], ['xxx', '/tmp/file']],
134134
\ 'spelllang': [['', 'xxx', 'sr@latin'], ['not&lang', "that\\\rthere"]],
135135
\ 'spelloptions': [['', 'camel'], ['xxx']],
136136
\ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
1926,
753755
/**/
754756
1925,
755757
/**/

0 commit comments

Comments
 (0)