From f4f1ce1d167c557e54153f74cf0f55245b8fd414 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 22 Jun 2023 18:15:04 +0800 Subject: fix(extmarks): hide inline virt_text properly with 'smoothscroll' (#24106) --- src/nvim/drawline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index 55f0d69aaf..34d15d85c3 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -1525,7 +1525,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool number_onl // If there the text doesn't reach to the desired column, need to skip // "skip_cells" cells when virtual text follows. - if (!wp->w_p_wrap && v > wlv.vcol) { + if ((!wp->w_p_wrap || (lnum == wp->w_topline && wp->w_skipcol > 0)) && v > wlv.vcol) { wlv.skip_cells = (int)(v - wlv.vcol); } -- cgit