From 150490d365a37b89d88a0e66ef6ec789bb4eb1c3 Mon Sep 17 00:00:00 2001 From: luukvbaal Date: Sat, 11 Oct 2025 18:22:18 +0200 Subject: [PATCH] fix(conceal): assert tripped during startup #36136 Problem: Row assertion for concealed lines trips during startup. Solution: Remove the assertion and return early instead. --- src/nvim/decoration.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nvim/decoration.c b/src/nvim/decoration.c index e9e0e61331..5030c337aa 100644 --- a/src/nvim/decoration.c +++ b/src/nvim/decoration.c @@ -865,8 +865,7 @@ static const uint32_t conceal_filter[kMTMetaCount] = {[kMTMetaConcealLines] = kM /// @return whether "row" is concealed bool decor_conceal_line(win_T *wp, int row, bool check_cursor) { - assert(row >= 0); - if (wp->w_p_cole < 2 + if (row < 0 || wp->w_p_cole < 2 || (!check_cursor && wp == curwin && row + 1 == wp->w_cursor.lnum && !conceal_cursor_line(wp))) { return false;