From 9f85dace94d2682f076ede824d3516cdf779ff7b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 14 Feb 2025 07:21:45 +0800 Subject: vim-patch:9.1.1108: 'smoothscroll' gets stuck with 'listchars' "eol" (#32434) Problem: 'smoothscroll' gets stuck with 'listchars' "eol". Solution: Count size of 'listchars' "eol" in line size when scrolling. (zeertzjq) related: neovim/neovim#32405 closes: vim/vim#16627 https://github.com/vim/vim/commit/2c47ab8fcd7188fa87053c757ea86b0d846c06c1 --- src/nvim/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/cursor.c') diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index 580ed856e4..98cea7f283 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -130,7 +130,7 @@ static int coladvance2(win_T *wp, pos_T *pos, bool addspaces, bool finetune, col && wp->w_width_inner != 0 && wcol >= (colnr_T)width && width > 0) { - csize = linetabsize(wp, pos->lnum); + csize = linetabsize_eol(wp, pos->lnum); if (csize > 0) { csize--; } -- cgit