Mercurial > vim
comparison src/option.c @ 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 | 5e25171e0e75 |
children | 7e733046db1d |
comparison
equal
deleted
inserted
replaced
16550:0352bcc175cb | 16551:367a775ed430 |
---|---|
6055 * Return TRUE if "val" is a valid 'spellang' value. | 6055 * Return TRUE if "val" is a valid 'spellang' value. |
6056 */ | 6056 */ |
6057 int | 6057 int |
6058 valid_spellang(char_u *val) | 6058 valid_spellang(char_u *val) |
6059 { | 6059 { |
6060 return valid_name(val, ".-_,"); | 6060 return valid_name(val, ".-_,@"); |
6061 } | 6061 } |
6062 | 6062 |
6063 /* | 6063 /* |
6064 * Return TRUE if "val" is a valid 'spellfile' value. | 6064 * Return TRUE if "val" is a valid 'spellfile' value. |
6065 */ | 6065 */ |