diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-24 20:26:03 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-25 11:24:22 +0200 |
commit | d2dc7cfa5b930a1ff68426f3d47809508ac7d392 (patch) | |
tree | 468b4ada8e8ece847155fdbf97fa0bb4df9e3db8 /test/functional/ui/spell_spec.lua | |
parent | ad7cded1f3f40912d962796d6965dac17ecb97f0 (diff) | |
download | rneovim-d2dc7cfa5b930a1ff68426f3d47809508ac7d392.tar.gz rneovim-d2dc7cfa5b930a1ff68426f3d47809508ac7d392.tar.bz2 rneovim-d2dc7cfa5b930a1ff68426f3d47809508ac7d392.zip |
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.
https://github.com/vim/vim/commit/26f09ea54b2c60abf21df42c60bdfc60eca17b0d
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional/ui/spell_spec.lua')
-rw-r--r-- | test/functional/ui/spell_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/ui/spell_spec.lua b/test/functional/ui/spell_spec.lua index 5cfb85e431..800043b169 100644 --- a/test/functional/ui/spell_spec.lua +++ b/test/functional/ui/spell_spec.lua @@ -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() |