diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-05 13:29:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-05 13:29:15 +0100 |
commit | f3ef026c9897f1d2e3fba47166a4771d507dae91 (patch) | |
tree | f46f289180fb90f5c2b51479bf3f39bb9e669813 /src/change.c | |
parent | d1955987147a299d7bca30cd1b5792535ff0745c (diff) |
patch 9.0.0664: bad redrawing with spell checking, using "C" and "$" in 'cpo'v9.0.0664
Problem: Bad redrawing with spell checking, using "C" and "$" in 'cpo'.
Solution: Do not redraw the next line when "$" is in 'cpo'. (closes #11285)
Diffstat (limited to 'src/change.c')
-rw-r--r-- | src/change.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/change.c b/src/change.c index 67b70230a1..84afcc7338 100644 --- a/src/change.c +++ b/src/change.c @@ -713,7 +713,10 @@ 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); #endif #ifdef FEAT_DIFF |