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)

e84c773d42
This commit is contained in:
Luuk van Baal
2023-05-31 21:13:58 +02:00
parent 316c877034
commit ac1ad9651e
4 changed files with 63 additions and 27 deletions

View File

@@ -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()