@@ -777,7 +777,7 @@ func Test_smoothscroll_incsearch()
777777 call setline (14 , ' bbbb' )
778778 END
779779 call writefile (lines , ' XSmoothIncsearch' , ' D' )
780- let buf = RunVimInTerminal (' -S XSmoothIncsearch' , #{rows: 8 , cols: 40 })
780+ let buf = RunVimInTerminal (' -S XSmoothIncsearch' , #{rows: 8 , cols: 40 })
781781
782782 call term_sendkeys (buf , " /b" )
783783 call VerifyScreenDump (buf , ' Test_smooth_incsearch_1' , {})
@@ -792,4 +792,26 @@ func Test_smoothscroll_incsearch()
792792 call StopVimInTerminal (buf )
793793endfunc
794794
795+ " Test scrolling multiple lines and stopping at non-zero skipcol.
796+ func Test_smoothscroll_multi_skipcol ()
797+ CheckScreendump
798+
799+ let lines = << trim END
800+ setlocal cursorline scrolloff = 0 smoothscroll
801+ call setline (1 , repeat ([' ' ], 9 ))
802+ call setline (3 , repeat (' a' , 50 ))
803+ call setline (8 , ' bbb' )
804+ call setline (9 , ' ccc' )
805+ redraw
806+ END
807+ call writefile (lines , ' XSmoothMultiSkipcol' , ' D' )
808+ let buf = RunVimInTerminal (' -S XSmoothMultiSkipcol' , #{rows: 10 , cols: 40 })
809+ call VerifyScreenDump (buf , ' Test_smooth_multi_skipcol_1' , {})
810+
811+ call term_sendkeys (buf , " 3\<C-E> " )
812+ call VerifyScreenDump (buf , ' Test_smooth_multi_skipcol_2' , {})
813+
814+ call StopVimInTerminal (buf )
815+ endfunc
816+
795817" vim: shiftwidth = 2 sts = 2 expandtab
0 commit comments