diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-17 15:40:21 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-09-22 10:38:10 +0200 |
commit | 93b30582db520ae20d66b000053007c11b62c15d (patch) | |
tree | f1f3f829a263927047055216dcd259e2e51b9186 /src/nvim/sign.c | |
parent | 00cfc1dcebd1c81dd0d8c111740782e86cf2e385 (diff) | |
download | rneovim-93b30582db520ae20d66b000053007c11b62c15d.tar.gz rneovim-93b30582db520ae20d66b000053007c11b62c15d.tar.bz2 rneovim-93b30582db520ae20d66b000053007c11b62c15d.zip |
fix(redraw): make redrawdebug=nodelta handle all the cases
Before only win_line lines were considered. this applies nodelta
to all screen elements. Causes some failures, which might indeed
indicate excessive redraws.
Diffstat (limited to 'src/nvim/sign.c')
-rw-r--r-- | src/nvim/sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/sign.c b/src/nvim/sign.c index 5ce9ee4546..6f13dd2f06 100644 --- a/src/nvim/sign.c +++ b/src/nvim/sign.c @@ -557,7 +557,7 @@ static linenr_T buf_delsign(buf_T *buf, linenr_T atlnum, int id, char *group) sign_group_unref((char *)sign->se_group->sg_name); } xfree(sign); - redraw_buf_line_later(buf, lnum); + redraw_buf_line_later(buf, lnum, false); // Check whether only one sign needs to be deleted // If deleting a sign with a specific identifier in a particular // group or deleting any sign at a particular line number, delete @@ -1062,7 +1062,7 @@ static int sign_place(int *sign_id, const char *sign_group, const char *sign_nam lnum = buf_change_sign_type(buf, *sign_id, (char *)sign_group, sp->sn_typenr, prio); } if (lnum > 0) { - redraw_buf_line_later(buf, lnum); + redraw_buf_line_later(buf, lnum, false); // When displaying signs in the 'number' column, if the width of the // number column is less than 2, then force recomputing the width. @@ -1093,7 +1093,7 @@ static int sign_unplace(int sign_id, char *sign_group, buf_T *buf, linenr_T atln if (lnum == 0) { return FAIL; } - redraw_buf_line_later(buf, lnum); + redraw_buf_line_later(buf, lnum, false); } // When all the signs in a buffer are removed, force recomputing the |