0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 9.1.1108: 'smoothscroll' gets stuck with 'listchars' "eol"

Problem:  'smoothscroll' gets stuck with 'listchars' "eol".
Solution: Count size of 'listchars' "eol" in line size when scrolling.
          (zeertzjq)

related: neovim/neovim#32405
closes: #16627

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-02-13 20:34:34 +01:00
committed by Christian Brabandt
parent c0b7ca406b
commit 2c47ab8fcd
8 changed files with 102 additions and 20 deletions

View File

@@ -5764,7 +5764,7 @@ nv_g_home_m_cmd(cmdarg_T *cap)
// that skipcol is not adjusted later.
if (curwin->w_skipcol > 0 && curwin->w_cursor.lnum == curwin->w_topline)
{
int overlap = sms_marker_overlap(curwin, -1);
int overlap = sms_marker_overlap(curwin, curwin->w_width - width2);
if (overlap > 0 && i == curwin->w_skipcol)
i += overlap;
}