To: vim_dev@googlegroups.com Subject: Patch 8.2.1926 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1926 Problem: Cannot use a space in 'spellfile'. (Filipe Brandenburger) Solution: Permit using a space. (closes #7230) Files: src/spell.c, src/testdir/gen_opt_test.vim *** ../vim-8.2.1925/src/spell.c 2020-09-28 23:13:09.950705432 +0200 --- src/spell.c 2020-10-30 19:24:18.633832089 +0100 *************** *** 4340,4346 **** char_u *s; for (s = val; *s != NUL; ++s) ! if (!vim_isfilec(*s) && *s != ',') return FALSE; return TRUE; } --- 4340,4346 ---- char_u *s; for (s = val; *s != NUL; ++s) ! if (!vim_isfilec(*s) && *s != ',' && *s != ' ') return FALSE; return TRUE; } *** ../vim-8.2.1925/src/testdir/gen_opt_test.vim 2020-10-28 20:19:56.376057067 +0100 --- src/testdir/gen_opt_test.vim 2020-10-30 19:23:20.985997941 +0100 *************** *** 130,136 **** \ 'selectmode': [['', 'mouse', 'key,cmd'], ['xxx']], \ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']], \ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']], ! \ 'spellfile': [['', 'file.en.add'], ['xxx', '/tmp/file']], \ 'spelllang': [['', 'xxx', 'sr@latin'], ['not&lang', "that\\\rthere"]], \ 'spelloptions': [['', 'camel'], ['xxx']], \ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']], --- 130,136 ---- \ 'selectmode': [['', 'mouse', 'key,cmd'], ['xxx']], \ 'sessionoptions': [['', 'blank', 'help,options,slash'], ['xxx']], \ 'signcolumn': [['', 'auto', 'no'], ['xxx', 'no,yes']], ! \ 'spellfile': [['', 'file.en.add', '/tmp/dir\ with\ space/en.utf-8.add'], ['xxx', '/tmp/file']], \ 'spelllang': [['', 'xxx', 'sr@latin'], ['not&lang', "that\\\rthere"]], \ 'spelloptions': [['', 'camel'], ['xxx']], \ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']], *** ../vim-8.2.1925/src/version.c 2020-10-30 19:04:39.049202455 +0100 --- src/version.c 2020-10-30 19:22:23.966161988 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1926, /**/ -- hundred-and-one symptoms of being an internet addict: 159. You get excited whenever discussing your hard drive. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///