mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 04:46:10 +00:00
fix(conceal): assert tripped during startup #36136
Problem: Row assertion for concealed lines trips during startup. Solution: Remove the assertion and return early instead.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user