aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-05-24 20:26:03 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-05-25 11:24:22 +0200
commitd2dc7cfa5b930a1ff68426f3d47809508ac7d392 (patch)
tree468b4ada8e8ece847155fdbf97fa0bb4df9e3db8 /src/nvim/edit.c
parentad7cded1f3f40912d962796d6965dac17ecb97f0 (diff)
downloadrneovim-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 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 612a1a1bda..c0f094453d 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -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--;