mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user