From 678548a2b44601db73cc7d049467abd2b433baae Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 24 May 2023 21:25:39 +0800 Subject: fix(folds): show Folded highlight in Visual selection (#23741) Note: CursorLine highlight is now combined with Folded. --- src/nvim/drawline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/drawline.c') diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index 510731a438..927b1247be 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -1807,8 +1807,8 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange, } int extmark_attr = 0; - if (wlv.draw_state == WL_LINE - && (area_highlighting || has_spell || (extra_check && !has_fold))) { + if (wlv.draw_state == WL_LINE && !has_fold + && (area_highlighting || has_spell || extra_check)) { // handle Visual or match highlighting in this line if (wlv.vcol == wlv.fromcol || (wlv.vcol + 1 == wlv.fromcol && wlv.n_extra == 0 -- cgit