diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-22 18:15:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 18:15:04 +0800 |
commit | f4f1ce1d167c557e54153f74cf0f55245b8fd414 (patch) | |
tree | 29b29b521db1805c5fea0543fe7f0969f0be7cda /src | |
parent | 958cc22836f199c90eea680847843574ec54ebfe (diff) | |
download | rneovim-f4f1ce1d167c557e54153f74cf0f55245b8fd414.tar.gz rneovim-f4f1ce1d167c557e54153f74cf0f55245b8fd414.tar.bz2 rneovim-f4f1ce1d167c557e54153f74cf0f55245b8fd414.zip |
fix(extmarks): hide inline virt_text properly with 'smoothscroll' (#24106)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/drawline.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |