Mercurial > vim
changeset 16551:367a775ed430 v8.1.1279
patch 8.1.1279: cannot set 'spellang' to "sr@latin"
commit https://github.com/vim/vim/commit/9a061cb78ccbf78ec9ae454d37a49edccb4e94fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 5 16:55:03 2019 +0200
patch 8.1.1279: cannot set 'spellang' to "sr@latin"
Problem: Cannot set 'spellang' to "sr@latin". (Bojan Stipic)
Solution: Allow using '@' in 'spellang'. (closes https://github.com/vim/vim/issues/4342)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 May 2019 17:00:05 +0200 |
parents | 0352bcc175cb |
children | deb3d4f5be8b |
files | src/option.c src/testdir/gen_opt_test.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -6057,7 +6057,7 @@ valid_filetype(char_u *val) int valid_spellang(char_u *val) { - return valid_name(val, ".-_,"); + return valid_name(val, ".-_,@"); } /*
--- a/src/testdir/gen_opt_test.vim +++ b/src/testdir/gen_opt_test.vim @@ -125,6 +125,7 @@ let test_values = { \ '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"]], \ 'spellsuggest': [['', 'best', 'double,33'], ['xxx']], \ 'switchbuf': [['', 'useopen', 'split,newtab'], ['xxx']], \ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']],