aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-21 23:40:21 +0800
committerGitHub <noreply@github.com>2022-12-21 23:40:21 +0800
commitf3848968371a2cb091b3e1f56961d2137c7ff6de (patch)
treec98c57e2ed5147fc3b73a1e3d64ad2454f0feda9
parentec1738a6ed08dd3a89fd07950fa2dcc55a72b705 (diff)
downloadrneovim-f3848968371a2cb091b3e1f56961d2137c7ff6de.tar.gz
rneovim-f3848968371a2cb091b3e1f56961d2137c7ff6de.tar.bz2
rneovim-f3848968371a2cb091b3e1f56961d2137c7ff6de.zip
fix(decoration): do not reset must_redraw after calling providers (#21459)
Resetting must_redraw caused a strange bug #21278, so don't do it. Remove the goto as well, as it doesn't make much sense after #20665.
-rw-r--r--src/nvim/drawscreen.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c
index 4a300384e7..de6bdda71e 100644
--- a/src/nvim/drawscreen.c
+++ b/src/nvim/drawscreen.c
@@ -956,9 +956,6 @@ static void draw_sep_connectors_win(win_T *wp)
/// bot: from bot_start to last row (when scrolled up)
static void win_update(win_T *wp, DecorProviders *providers)
{
- bool called_decor_providers = false;
-win_update_start:
- ;
int top_end = 0; // Below last row of the top area that needs
// updating. 0 when no top area updating.
int mid_start = 999; // first row of the mid area that needs
@@ -1028,13 +1025,6 @@ win_update_start:
DecorProviders line_providers;
decor_providers_invoke_win(wp, providers, &line_providers, &provider_err);
- if (must_redraw != 0) {
- must_redraw = 0;
- if (!called_decor_providers) {
- called_decor_providers = true;
- goto win_update_start;
- }
- }
redraw_win_signcol(wp);