diff options
| author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-24 19:50:01 +0200 |
|---|---|---|
| committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-25 01:13:47 +0200 |
| commit | bff67c9fbe8c174dae8952a565a110930dc4fc58 (patch) | |
| tree | 81fc21ff55ea16ab5ca4dbb2b7c0a1124472a2b1 /test/old/testdir | |
| parent | 678548a2b44601db73cc7d049467abd2b433baae (diff) | |
| download | rneovim-bff67c9fbe8c174dae8952a565a110930dc4fc58.tar.gz rneovim-bff67c9fbe8c174dae8952a565a110930dc4fc58.tar.bz2 rneovim-bff67c9fbe8c174dae8952a565a110930dc4fc58.zip | |
vim-patch:9.0.0175: spell checking for capital not working with trailing space
Problem: Spell checking for capital not working with trailing space.
Solution: Do not calculate cap_col at the end of the line. (Christian
Brabandt, closes vim/vim#10870, issue vim/vim#10838)
https://github.com/vim/vim/commit/afa23d1b99692e3c726eb694933ab348b442a1e4
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/old/testdir')
| -rw-r--r-- | test/old/testdir/test_spell.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/old/testdir/test_spell.vim b/test/old/testdir/test_spell.vim index c840e834b9..1d122d7726 100644 --- a/test/old/testdir/test_spell.vim +++ b/test/old/testdir/test_spell.vim @@ -996,6 +996,29 @@ func Test_spell_screendump() call delete('XtestSpell') endfunc +func Test_spell_screendump_spellcap() + CheckScreendump + + let lines =<< trim END + call setline(1, [ + \ " This line has a sepll error. and missing caps and trailing spaces. ", + \ "another missing cap here.", + \ "", + \ "and here.", + \ " ", + \ "and here." + \ ]) + set spell spelllang=en + END + call writefile(lines, 'XtestSpellCap') + let buf = RunVimInTerminal('-S XtestSpellCap', {'rows': 8}) + call VerifyScreenDump(buf, 'Test_spell_2', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('XtestSpellCap') +endfunc + let g:test_data_aff1 = [ \"SET ISO8859-1", \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |