forked from aniani/vim
patch 9.0.0645: CTRL-Y does not stop at line 1
Problem: CTRL-Y does not stop at line 1. (John Marriott) Solution: Stop at line 1 when 'smoothscroll' is not set. (closes #11261)
This commit is contained in:
@@ -37,6 +37,19 @@ func Test_reset_scroll()
|
||||
quit!
|
||||
endfunc
|
||||
|
||||
func Test_CtrlE_CtrlY_stop_at_end()
|
||||
enew
|
||||
call setline(1, ['one', 'two'])
|
||||
set number
|
||||
exe "normal \<C-Y>"
|
||||
call assert_equal([" 1 one "], ScreenLines(1, 10))
|
||||
exe "normal \<C-E>\<C-E>\<C-E>"
|
||||
call assert_equal([" 2 two "], ScreenLines(1, 10))
|
||||
|
||||
bwipe!
|
||||
set nonumber
|
||||
endfunc
|
||||
|
||||
func Test_smoothscroll_CtrlE_CtrlY()
|
||||
CheckScreendump
|
||||
|
||||
|
||||
Reference in New Issue
Block a user