From 9170178ee5af5e871a6f36d09e54c67e14de3834 Mon Sep 17 00:00:00 2001 From: vanaigr Date: Mon, 1 Sep 2025 13:49:10 -0500 Subject: [PATCH] fix: use correct window dimension for range estimation --- src/nvim/drawline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index f87f7ab2fa..0e571bece0 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -3276,7 +3276,7 @@ static int decor_providers_setup(int rows_to_draw, bool draw_from_line_start, li int first_row_width = draw_from_line_start ? width : width2; rem_vcols = first_row_width + (rows_to_draw - 1) * width2; } else { - rem_vcols = wp->w_view_height - win_col_off(wp); + rem_vcols = wp->w_view_width - win_col_off(wp); } // Call it here since we need to invalidate the line pointer anyway.