From 52163c66b936c21f00832af19fb438b6db6f9766 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Wed, 30 Dec 2020 15:17:41 +0100 Subject: [PATCH] fix(fold): highlight even in folds (#13643) --- src/nvim/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index dc028f0ed7..9ed91fcd89 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2013,7 +2013,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, // end-of-line int lcs_eol_one = wp->w_p_lcs_chars.eol; // 'eol' until it's been used int lcs_prec_todo = wp->w_p_lcs_chars.prec; // 'prec' until it's been used - bool has_fold = foldinfo.fi_level != 0 && foldinfo.fi_lines >= 0; + bool has_fold = foldinfo.fi_level != 0 && foldinfo.fi_lines > 0; // saved "extra" items for when draw_state becomes WL_LINE (again) int saved_n_extra = 0;