Mercurial > vim
diff src/testdir/test_scroll_opt.vim @ 31333:bfbcc148da58 v9.0.1000
patch 9.0.1000: with 'smoothscroll' skipcol may be reset unnecessarily
Commit: https://github.com/vim/vim/commit/b21b8e9ed081a6ef6b6745fe65d219b3ac046c3b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 3 18:35:07 2022 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Dec 2022 19:45:03 +0100 |
parents | 5c83140aafc9 |
children | 3c21865e8068 |
line wrap: on
line diff
--- a/src/testdir/test_scroll_opt.vim +++ b/src/testdir/test_scroll_opt.vim @@ -481,6 +481,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