aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/drawline.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-24 21:25:39 +0800
committerGitHub <noreply@github.com>2023-05-24 21:25:39 +0800
commit678548a2b44601db73cc7d049467abd2b433baae (patch)
tree32f67a3a7c4432779a6084614fbe6548ed31404b /src/nvim/drawline.c
parentc855eee919f2d4edc9b9fa91b277454290fbabfe (diff)
downloadrneovim-678548a2b44601db73cc7d049467abd2b433baae.tar.gz
rneovim-678548a2b44601db73cc7d049467abd2b433baae.tar.bz2
rneovim-678548a2b44601db73cc7d049467abd2b433baae.zip
fix(folds): show Folded highlight in Visual selection (#23741)
Note: CursorLine highlight is now combined with Folded.
Diffstat (limited to 'src/nvim/drawline.c')
-rw-r--r--src/nvim/drawline.c4
1 files changed, 2 insertions, 2 deletions
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