diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/change.c | 5 | ||||
-rw-r--r-- | src/nvim/edit.c | 4 |
2 files changed, 6 insertions, 3 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 diff --git a/src/nvim/edit.c b/src/nvim/edit.c index c0f094453d..d6d5ff8ac7 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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; |