aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-06 07:13:08 +0800
committerGitHub <noreply@github.com>2023-06-06 07:13:08 +0800
commit9deef1aa227717a2c73ab1d4ad2c883d9b3c2f24 (patch)
treec40522c2f9b7beaa136af664c643cd8b6ee123e5 /test/old
parent30e9ddfd05f5f2fa56d7fd5235a3f993b94f9910 (diff)
downloadrneovim-9deef1aa227717a2c73ab1d4ad2c883d9b3c2f24.tar.gz
rneovim-9deef1aa227717a2c73ab1d4ad2c883d9b3c2f24.tar.bz2
rneovim-9deef1aa227717a2c73ab1d4ad2c883d9b3c2f24.zip
vim-patch:9.0.1612: "skipcol" not reset when using multi-byte characters (#23928)
Problem: "skipcol" not reset when using multi-byte characters. Solution: Compare with w_virtcol instead of w_cursor.col. (closes vim/vim#12457) https://github.com/vim/vim/commit/15d4747ffd197ffa5b5a41a852a1fe93b6cc35fd Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_scroll_opt.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/old/testdir/test_scroll_opt.vim b/test/old/testdir/test_scroll_opt.vim
index f9f33b20eb..d7be074168 100644
--- a/test/old/testdir/test_scroll_opt.vim
+++ b/test/old/testdir/test_scroll_opt.vim
@@ -124,6 +124,21 @@ func Test_smoothscroll_CtrlE_CtrlY()
call StopVimInTerminal(buf)
endfunc
+func Test_smoothscroll_multibyte()
+ CheckScreendump
+
+ let lines =<< trim END
+ set scrolloff=0 smoothscroll
+ call setline(1, [repeat('ϛ', 45), repeat('2', 36)])
+ exe "normal G35l\<C-E>k"
+ END
+ call writefile(lines, 'XSmoothMultibyte', 'D')
+ let buf = RunVimInTerminal('-S XSmoothMultibyte', #{rows: 6, cols: 40})
+ call VerifyScreenDump(buf, 'Test_smoothscroll_multi_1', {})
+
+ call StopVimInTerminal(buf)
+endfunc
+
func Test_smoothscroll_number()
CheckScreendump