comparison src/testdir/test_spell.vim @ 30545:9a6f7e750697 v9.0.0608

patch 9.0.0608: with spelling, deleting a full stop does not update next line Commit: https://github.com/vim/vim/commit/26f09ea54b2c60abf21df42c60bdfc60eca17b0d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 27 16:29:38 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 27 Sep 2022 17:30:05 +0200
parents 087c42245022
children 4f1f9728d6c3
comparison
equal deleted inserted replaced
30544:f37a467a0e49 30545:9a6f7e750697
984 call VerifyScreenDump(buf, 'Test_spell_2', {}) 984 call VerifyScreenDump(buf, 'Test_spell_2', {})
985 985
986 " After adding word missing Cap in next line is updated 986 " After adding word missing Cap in next line is updated
987 call term_sendkeys(buf, "3GANot\<Esc>") 987 call term_sendkeys(buf, "3GANot\<Esc>")
988 call VerifyScreenDump(buf, 'Test_spell_3', {}) 988 call VerifyScreenDump(buf, 'Test_spell_3', {})
989
990 " Deleting a full stop removes missing Cap in next line
991 call term_sendkeys(buf, "5Gddk$x")
992 call VerifyScreenDump(buf, 'Test_spell_4', {})
993
994 " Undo also updates the next line (go to command line to remove message)
995 call term_sendkeys(buf, "u:\<Esc>")
996 call VerifyScreenDump(buf, 'Test_spell_5', {})
989 997
990 " clean up 998 " clean up
991 call StopVimInTerminal(buf) 999 call StopVimInTerminal(buf)
992 call delete('XtestSpellCap') 1000 call delete('XtestSpellCap')
993 endfunc 1001 endfunc