vim-patch:9.0.0608: with spelling, deleting a full stop does not update next line

Problem:    With spell checking, deleting a full stop at the end of a line
            does not update SpellCap at the start of the next line.
Solution:   Update the next line when characters have been deleted.  Also when
            using undo.

26f09ea54b

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Luuk van Baal
2023-05-24 20:26:03 +02:00
parent ad7cded1f3
commit d2dc7cfa5b
5 changed files with 46 additions and 8 deletions

View File

@@ -115,6 +115,30 @@ describe("'spell'", function()
{0:~ }|
|
]])
-- Deleting a full stop removes missing Cap in next line
feed('5Gddk$x')
screen:expect([[
This line has a {1:sepll} error. {2:and} missing caps and trailing spaces. |
{2:another} missing cap here. |
Not |
and her^e |
and here. |
{0:~ }|
{0:~ }|
|
]])
-- Undo also updates the next line (go to command line to remove message)
feed('u:<Esc>')
screen:expect([[
This line has a {1:sepll} error. {2:and} missing caps and trailing spaces. |
{2:another} missing cap here. |
Not |
and here^. |
{2:and} here. |
{0:~ }|
{0:~ }|
|
]])
end)
it('extmarks, "noplainbuffer" and syntax #20385 #23398', function()