diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-12 13:02:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 13:02:27 +0800 |
commit | 929e1b7f1c35679424989f5ebfc78f095bb434d9 (patch) | |
tree | 9926fa873746da91cb2564c4d2606ff11829817e /src/nvim/help.c | |
parent | 950a0ac61c70362f168338b815675ac60b1d72dc (diff) | |
download | rneovim-929e1b7f1c35679424989f5ebfc78f095bb434d9.tar.gz rneovim-929e1b7f1c35679424989f5ebfc78f095bb434d9.tar.bz2 rneovim-929e1b7f1c35679424989f5ebfc78f095bb434d9.zip |
perf(extmarks): avoid unnecessary invalidations for virt_text (#27435)
Invalidation of most w_valid flags isn't needed when adding or removing
virtual text below cursor.
Diffstat (limited to 'src/nvim/help.c')
-rw-r--r-- | src/nvim/help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/help.c b/src/nvim/help.c index 879e2801a7..779772cedf 100644 --- a/src/nvim/help.c +++ b/src/nvim/help.c @@ -803,7 +803,7 @@ void get_local_additions(void) linenr_T appended = lnum - lnum_start; if (appended) { mark_adjust(lnum_start + 1, (linenr_T)MAXLNUM, appended, 0, kExtmarkUndo); - buf_redraw_changed_lines_later(curbuf, lnum_start + 1, lnum_start + 1, appended); + changed_lines_redraw_buf(curbuf, lnum_start + 1, lnum_start + 1, appended); } break; } |