aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_scroll_opt.vim
diff options
context:
space:
mode:
Diffstat (limited to 'test/old/testdir/test_scroll_opt.vim')
-rw-r--r--test/old/testdir/test_scroll_opt.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_scroll_opt.vim b/test/old/testdir/test_scroll_opt.vim
index c8d0f51384..af46773ebf 100644
--- a/test/old/testdir/test_scroll_opt.vim
+++ b/test/old/testdir/test_scroll_opt.vim
@@ -498,6 +498,13 @@ func Test_smoothscroll_cursor_scrolloff()
exe "normal 20h"
call s:check_col_calc(1, 4, 61)
+ " cursor on last line, "gk" should not cause a scroll
+ set scrolloff=0
+ normal G0
+ call s:check_col_calc(1, 7, 1)
+ normal gk
+ call s:check_col_calc(1, 6, 101)
+
bwipe!
endfunc