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)

f3ef026c98

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Luuk van Baal
2023-05-24 20:41:58 +02:00
parent d2dc7cfa5b
commit 50efdd6ccf
4 changed files with 67 additions and 22 deletions

View File

@@ -1527,8 +1527,8 @@ void edit_unputchar(void)
}
}
// Called when p_dollar is set: display a '$' at the end of the changed text
// Only works when cursor is in the line that changes.
/// Called when "$" is in 'cpoptions': display a '$' at the end of the changed
/// text. Only works when cursor is in the line that changes.
void display_dollar(colnr_T col_arg)
{
colnr_T col = col_arg < 0 ? 0 : col_arg;