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

@@ -3395,14 +3395,6 @@ static bool ins_esc(long *count, int cmdchar, bool nomove)
check_spell_redraw();
// When text has been changed in this line, possibly the start of the next
// line may have SpellCap that should be removed or it needs to be
// displayed. Schedule the next line for redrawing just in case.
if (spell_check_window(curwin)
&& curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) {
redrawWinline(curwin, curwin->w_cursor.lnum + 1);
}
int temp = curwin->w_cursor.col;
if (disabled_redraw) {
RedrawingDisabled--;