aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-04-26 04:00:38 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-05-02 13:11:46 +0200
commit69af5e8782e601fe9c1e39adf49ce16728719a73 (patch)
treea1ee45679311ac69e384cc9f0ab3806308f481b5 /test/old
parent9128fc79f0630e0d1e5bedf9bd32417ecd42c4f5 (diff)
downloadrneovim-69af5e8782e601fe9c1e39adf49ce16728719a73.tar.gz
rneovim-69af5e8782e601fe9c1e39adf49ce16728719a73.tar.bz2
rneovim-69af5e8782e601fe9c1e39adf49ce16728719a73.zip
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 vim/vim#11261) https://github.com/vim/vim/commit/8df9748edb2ac8bd025e34e06194ac210667c97a Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_scroll_opt.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/old/testdir/test_scroll_opt.vim b/test/old/testdir/test_scroll_opt.vim
index 9375d4ad63..ed3ffd83e7 100644
--- a/test/old/testdir/test_scroll_opt.vim
+++ b/test/old/testdir/test_scroll_opt.vim
@@ -54,6 +54,19 @@ func Test_scolloff_even_line_count()
bwipe!
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