aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-05-24 20:41:58 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-05-25 11:24:22 +0200
commit50efdd6ccf1891392c048b92da5e5d123a30ff26 (patch)
tree7ad36d584cf0a1f6b6b28e04e60d916b91be4782 /test/old/testdir
parentd2dc7cfa5b930a1ff68426f3d47809508ac7d392 (diff)
downloadrneovim-50efdd6ccf1891392c048b92da5e5d123a30ff26.tar.gz
rneovim-50efdd6ccf1891392c048b92da5e5d123a30ff26.tar.bz2
rneovim-50efdd6ccf1891392c048b92da5e5d123a30ff26.zip
vim-patch:9.0.0664: bad redrawing with spell checking, using "C" and "$" in 'cpo'
Problem: Bad redrawing with spell checking, using "C" and "$" in 'cpo'. Solution: Do not redraw the next line when "$" is in 'cpo'. (closes vim/vim#11285) https://github.com/vim/vim/commit/f3ef026c9897f1d2e3fba47166a4771d507dae91 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir')
-rw-r--r--test/old/testdir/test_spell.vim45
1 files changed, 26 insertions, 19 deletions
diff --git a/test/old/testdir/test_spell.vim b/test/old/testdir/test_spell.vim
index c959e199d9..14d6ce30c4 100644
--- a/test/old/testdir/test_spell.vim
+++ b/test/old/testdir/test_spell.vim
@@ -972,28 +972,12 @@ func Test_spell_screendump()
\ ])
set spell spelllang=en_nz
END
- call writefile(lines, 'XtestSpell')
- let buf = RunVimInTerminal('-S XtestSpell', {'rows': 8})
- call VerifyScreenDump(buf, 'Test_spell_1', {})
-
- 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')
+ call writefile(lines, 'XtestSpell', 'D')
let buf = RunVimInTerminal('-S XtestSpell', {'rows': 8})
call VerifyScreenDump(buf, 'Test_spell_1', {})
" clean up
call StopVimInTerminal(buf)
- call delete('XtestSpell')
endfunc
func Test_spell_screendump_spellcap()
@@ -1010,7 +994,7 @@ func Test_spell_screendump_spellcap()
\ ])
set spell spelllang=en
END
- call writefile(lines, 'XtestSpellCap')
+ call writefile(lines, 'XtestSpellCap', 'D')
let buf = RunVimInTerminal('-S XtestSpellCap', {'rows': 8})
call VerifyScreenDump(buf, 'Test_spell_2', {})
@@ -1028,7 +1012,30 @@ func Test_spell_screendump_spellcap()
" clean up
call StopVimInTerminal(buf)
- call delete('XtestSpellCap')
+endfunc
+
+func Test_spell_compatible()
+ CheckScreendump
+
+ let lines =<< trim END
+ call setline(1, [
+ \ "test "->repeat(20),
+ \ "",
+ \ "end",
+ \ ])
+ set spell cpo+=$
+ END
+ call writefile(lines, 'XtestSpellComp', 'D')
+ let buf = RunVimInTerminal('-S XtestSpellComp', {'rows': 8})
+
+ call term_sendkeys(buf, "51|C")
+ call VerifyScreenDump(buf, 'Test_spell_compatible_1', {})
+
+ call term_sendkeys(buf, "x")
+ call VerifyScreenDump(buf, 'Test_spell_compatible_2', {})
+
+ " clean up
+ call StopVimInTerminal(buf)
endfunc
let g:test_data_aff1 = [