aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/change.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-05-24 20:41:58 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-05-25 11:24:22 +0200
commit50efdd6ccf1891392c048b92da5e5d123a30ff26 (patch)
tree7ad36d584cf0a1f6b6b28e04e60d916b91be4782 /src/nvim/change.c
parentd2dc7cfa5b930a1ff68426f3d47809508ac7d392 (diff)
downloadrneovim-50efdd6ccf1891392c048b92da5e5d123a30ff26.tar.gz
rneovim-50efdd6ccf1891392c048b92da5e5d123a30ff26.tar.bz2
rneovim-50efdd6ccf1891392c048b92da5e5d123a30ff26.zip
vim-patch:9.0.0664: bad redrawing with spell checking, using "C" and "$" in 'cpo'
Problem: Bad redrawing with spell checking, using "C" and "$" in 'cpo'. Solution: Do not redraw the next line when "$" is in 'cpo'. (closes vim/vim#11285) https://github.com/vim/vim/commit/f3ef026c9897f1d2e3fba47166a4771d507dae91 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r--src/nvim/change.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index ebbb0d4db6..9e1767c2f3 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -397,7 +397,10 @@ void changed_bytes(linenr_T lnum, colnr_T col)
// When text has been changed at the end of the 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) && lnum < curbuf->b_ml.ml_line_count) {
+ // Don't do this when displaying '$' at the end of changed text.
+ if (spell_check_window(curwin)
+ && lnum < curbuf->b_ml.ml_line_count
+ && vim_strchr(p_cpo, CPO_DOLLAR) == NULL) {
redrawWinline(curwin, lnum + 1);
}
// notify any channels that are watching