diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-31 18:57:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-31 18:57:36 +0100 |
commit | e84c773d42e8b6ef0f8ae9b6c7312e0fd47909af (patch) | |
tree | 451c2f6769fb90c496219d08413b146d154938cb /src/testdir/test_spell.vim | |
parent | 68ebcee0237d927dd5386073499162389d4d708a (diff) |
patch 9.0.1595: line pointer becomes invalid when using spell checkingv9.0.1595
Problem: Line pointer becomes invalid when using spell checking.
Solution: Call ml_get() at the right places. (Luuk van Baal, closes #12456)
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index 350077ad2a..a42d4c7e98 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -958,6 +958,7 @@ func Test_spell_screendump() CheckScreendump let lines =<< trim END + call test_override('alloc_lines', 1) call setline(1, [ \ "This is some text without any spell errors. Everything", \ "should just be black, nothing wrong here.", @@ -980,6 +981,7 @@ func Test_spell_screendump_spellcap() CheckScreendump let lines =<< trim END + call test_override('alloc_lines', 1) call setline(1, [ \ " This line has a sepll error. and missing caps and trailing spaces. ", \ "another missing cap here.", @@ -1019,6 +1021,14 @@ func Test_spell_screendump_spellcap() call term_sendkeys(buf, "\<C-E>\<C-L>") call VerifyScreenDump(buf, 'Test_spell_8', {}) + " Adding an empty line does not remove Cap in "mod_bot" area + call term_sendkeys(buf, "zbO\<Esc>") + call VerifyScreenDump(buf, 'Test_spell_9', {}) + + " Multiple empty lines does not remove Cap in the line after + call term_sendkeys(buf, "O\<Esc>\<C-L>") + call VerifyScreenDump(buf, 'Test_spell_10', {}) + " clean up call StopVimInTerminal(buf) endfunc @@ -1027,6 +1037,7 @@ func Test_spell_compatible() CheckScreendump let lines =<< trim END + call test_override('alloc_lines', 1) call setline(1, [ \ "test "->repeat(20), \ "", |