aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/decoration.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-17 15:40:21 +0200
committerbfredl <bjorn.linse@gmail.com>2022-09-22 10:38:10 +0200
commit93b30582db520ae20d66b000053007c11b62c15d (patch)
treef1f3f829a263927047055216dcd259e2e51b9186 /src/nvim/decoration.c
parent00cfc1dcebd1c81dd0d8c111740782e86cf2e385 (diff)
downloadrneovim-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/decoration.c')
-rw-r--r--src/nvim/decoration.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/decoration.c b/src/nvim/decoration.c
index 778f9293fb..5a1708a57c 100644
--- a/src/nvim/decoration.c
+++ b/src/nvim/decoration.c
@@ -75,12 +75,11 @@ void decor_redraw(buf_T *buf, int row1, int row2, Decoration *decor)
}
if (decor && decor_virt_pos(*decor)) {
- redraw_buf_line_later(buf, row1 + 1);
+ redraw_buf_line_later(buf, row1 + 1, false);
}
if (decor && kv_size(decor->virt_lines)) {
- redraw_buf_line_later(buf, MIN(buf->b_ml.ml_line_count,
- row1 + 1 + (decor->virt_lines_above?0:1)));
+ redraw_buf_line_later(buf, row1 + 1 + (decor->virt_lines_above?0:1), true);
}
}