fix(fold): highlight even in folds (#13643)

This commit is contained in:
Matthieu Coudron 2020-12-30 15:17:41 +01:00 committed by GitHub
parent 69fc6c2de0
commit 52163c66b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2013,7 +2013,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow,
// end-of-line // end-of-line
int lcs_eol_one = wp->w_p_lcs_chars.eol; // 'eol' until it's been used 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 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) // saved "extra" items for when draw_state becomes WL_LINE (again)
int saved_n_extra = 0; int saved_n_extra = 0;