aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-04-28 12:36:11 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-05-02 13:11:47 +0200
commit6fd7e3bea4c38e79c77fe506a45781ffd17ebe4f (patch)
tree00b5057d9e3fe69f8cd235882b266a2da22624c3 /test/old
parentc25fd85c2e618535b7780b965a883cb20ab1aa1a (diff)
downloadrneovim-6fd7e3bea4c38e79c77fe506a45781ffd17ebe4f.tar.gz
rneovim-6fd7e3bea4c38e79c77fe506a45781ffd17ebe4f.tar.bz2
rneovim-6fd7e3bea4c38e79c77fe506a45781ffd17ebe4f.zip
vim-patch:9.0.1000: with 'smoothscroll' skipcol may be reset unnecessarily
Problem: With 'smoothscroll' skipcol may be reset unnecessarily. Solution: Check the line does actually fit in the window. https://github.com/vim/vim/commit/b21b8e9ed081a6ef6b6745fe65d219b3ac046c3b Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old')
-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