diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-22 11:09:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 11:09:33 +0200 |
commit | 7fc5f6605fb3de361c970a1d22a42a905a072a0c (patch) | |
tree | ffe2148ab3193f2c122ed43e9655e3179b17c1e5 /src/nvim/sign.c | |
parent | 8d13b08a03c31cdb269b7d09c166e0b447f2a303 (diff) | |
parent | 02f8ca59a80cd3570593c717ff6ceadc33239b89 (diff) | |
download | rneovim-7fc5f6605fb3de361c970a1d22a42a905a072a0c.tar.gz rneovim-7fc5f6605fb3de361c970a1d22a42a905a072a0c.tar.bz2 rneovim-7fc5f6605fb3de361c970a1d22a42a905a072a0c.zip |
Merge pull request #20249 from bfredl/cmdmessage
fix(redraw): avoid unnecessary redraws and glitches with floats+messages
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 |