aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/spell_spec.lua
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-05-31 21:13:58 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-06-01 14:30:21 +0200
commitac1ad9651e88eef1eea92fe5bd1497344c83dc53 (patch)
treecc51da671524745045ff24a44ee947124ae1f7d6 /test/functional/ui/spell_spec.lua
parent316c8770348264f64deea34359cb5bdff6856ed8 (diff)
downloadrneovim-ac1ad9651e88eef1eea92fe5bd1497344c83dc53.tar.gz
rneovim-ac1ad9651e88eef1eea92fe5bd1497344c83dc53.tar.bz2
rneovim-ac1ad9651e88eef1eea92fe5bd1497344c83dc53.zip
vim-patch:9.0.1595: line pointer becomes invalid when using spell checking
Problem: Line pointer becomes invalid when using spell checking. Solution: Call ml_get() at the right places. (Luuk van Baal, closes vim/vim#12456) https://github.com/vim/vim/commit/e84c773d42e8b6ef0f8ae9b6c7312e0fd47909af
Diffstat (limited to 'test/functional/ui/spell_spec.lua')
-rw-r--r--test/functional/ui/spell_spec.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/ui/spell_spec.lua b/test/functional/ui/spell_spec.lua
index 630d0d0948..d18e19e5b2 100644
--- a/test/functional/ui/spell_spec.lua
+++ b/test/functional/ui/spell_spec.lua
@@ -178,6 +178,30 @@ describe("'spell'", function()
{0:~ }|
|
]])
+ -- Adding an empty line does not remove Cap in "mod_bot" area
+ feed('zbO<Esc>')
+ screen:expect([[
+ This line has a {1:sepll} error. {2:and} missing caps and trailing spaces. |
+ ^ |
+ {2:another} missing cap here |
+ {10:+-- 2 lines: Not·······························································}|
+ {2:and} here. |
+ {0:~ }|
+ {0:~ }|
+ |
+ ]])
+ -- Multiple empty lines does not remove Cap in the line after
+ feed('O<Esc><C-L>')
+ screen:expect([[
+ This line has a {1:sepll} error. {2:and} missing caps and trailing spaces. |
+ ^ |
+ |
+ {2:another} missing cap here |
+ {10:+-- 2 lines: Not·······························································}|
+ {2:and} here. |
+ {0:~ }|
+ |
+ ]])
end)
-- oldtest: Test_spell_compatible()