commit 150490d365a37b89d88a0e66ef6ec789bb4eb1c3
parent ce274231320777e08da9f1075a226a8a0351da86
Author: luukvbaal <luukvbaal@gmail.com>
Date: Sat, 11 Oct 2025 18:22:18 +0200
fix(conceal): assert tripped during startup #36136
Problem: Row assertion for concealed lines trips during startup.
Solution: Remove the assertion and return early instead.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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;