diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-18 20:37:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-18 20:37:08 +0200 |
commit | 7751d1d1a3d447d0d48f57f34e0da9f7c6ac433d (patch) | |
tree | a66d9b1b9a6ad27a836452205e4b989ccd3dc71c /src/testdir/test_spell.vim | |
parent | a1cb1d1dce14dd005797590721f1bcd0e7c3b35f (diff) |
patch 8.1.2172: spell highlight is wrong at start of the linev8.1.2172
Problem: Spell highlight is wrong at start of the line.
Solution: Fix setting the "v" variable. (closes #5078)
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index 9cbfaa50e8..146e421d03 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -4,6 +4,8 @@ source check.vim CheckFeature spell +source screendump.vim + func TearDown() set nospell call delete('Xtest.aff') @@ -460,6 +462,29 @@ func RunGoodBad(good, bad, expected_words, expected_bad_words) bwipe! endfunc +func Test_spell_screendump() + CheckScreendump + + let lines =<< trim END + call setline(1, [ + \ "This is some text without any spell errors. Everything", + \ "should just be black, nothing wrong here.", + \ "", + \ "This line has a sepll error. and missing caps.", + \ "And and this is the the duplication.", + \ "with missing caps here.", + \ ]) + set spell spelllang=en_nz + END + call writefile(lines, 'XtestSpell') + let buf = RunVimInTerminal('-S XtestSpell', {'rows': 8}) + call VerifyScreenDump(buf, 'Test_spell_1', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('XtestSpell') +endfunc + let g:test_data_aff1 = [ \"SET ISO8859-1", \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |