aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-29 21:47:21 +0800
committerGitHub <noreply@github.com>2022-07-29 21:47:21 +0800
commite59bc078de624a5f3220bfd2713be3f8978c5672 (patch)
tree245464a5271d4a7202a88bfe70bd5d647dfc8a9f /src
parent02efdb4d587242122df99b347a25fd4c96b0ca97 (diff)
downloadrneovim-e59bc078de624a5f3220bfd2713be3f8978c5672.tar.gz
rneovim-e59bc078de624a5f3220bfd2713be3f8978c5672.tar.bz2
rneovim-e59bc078de624a5f3220bfd2713be3f8978c5672.zip
fix(screen): check for col instead of vcol when drawing fold (#19572)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index b9c38d9339..78fa10a555 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2909,7 +2909,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
if (draw_state == WL_LINE
&& has_fold
- && vcol == 0
+ && col == win_col_offset
&& n_extra == 0
&& row == startrow) {
char_attr = win_hl_attr(wp, HLF_FL);