diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-21 15:38:57 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-24 07:13:39 +0200 |
| commit | a08959bc7a830018e88843649487a73497bb321a (patch) | |
| tree | 25c2d4e98bcd5e24aed8de1d9f5101fc59f854a3 /src/nvim/testdir | |
| parent | 4f8d98e583beb4c1abd5d57b9898548396633030 (diff) | |
| download | rneovim-a08959bc7a830018e88843649487a73497bb321a.tar.gz rneovim-a08959bc7a830018e88843649487a73497bb321a.tar.bz2 rneovim-a08959bc7a830018e88843649487a73497bb321a.zip | |
vim-patch:8.2.0953: spell checking doesn't work for CamelCased words
Problem: Spell checking doesn't work for CamelCased words.
Solution: Add the "camel" value in the new option 'spelloptions'.
(closes vim/vim#1235)
https://github.com/vim/vim/commit/362b44bd4aa87a2aef0f8fd5a28d68dd09a7d909
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_spell.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim index 414c7278eb..64e030426d 100644 --- a/src/nvim/testdir/test_spell.vim +++ b/src/nvim/testdir/test_spell.vim @@ -79,6 +79,11 @@ func Test_spellbadword() call assert_equal(['bycycle', 'bad'], spellbadword('My bycycle.')) call assert_equal(['another', 'caps'], spellbadword('A sentence. another sentence')) + call assert_equal(['TheCamelWord', 'bad'], spellbadword('TheCamelWord asdf')) + set spelloptions=camel + call assert_equal(['asdf', 'bad'], spellbadword('TheCamelWord asdf')) + set spelloptions= + set spelllang=en call assert_equal(['', ''], spellbadword('centre')) call assert_equal(['', ''], spellbadword('center')) |