mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 09:49:02 -06: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:
1 parent
ce27423132
commit
150490d365
1 file changed
+1
-2
@@ -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