diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-04-10 17:33:43 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-10 17:33:43 +0200 |
commit | aa8e22b035dd669cb47c9237f9c9a917ec6a0ec4 (patch) | |
tree | 4b8c46702d7fbac8f1802909a1b4b31fb5a9f83c | |
parent | 7f5202143b2c84ec12e709272d90dd79621d14ca (diff) |
patch 9.1.0300: Missing test for what patch v9.1.0285 fixesv9.1.0300
Problem: Missing test for what patch v9.1.0285 fixes
Solution: Add a test for cursor movement at buffer boundaries.
(Luuk van Baal)
closes: #14470
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | src/testdir/test_normal.vim | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim index 4f99095415..7fb6a4bf53 100644 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -4237,4 +4237,14 @@ func Test_halfpage_scrolloff_eob() bwipe! endfunc +" Test for Ctrl-U/D moving the cursor at the buffer boundaries. +func Test_halfpage_cursor_startend() + call setline(1, range(1, 100)) + exe "norm! jztj\<C-U>" + call assert_equal(1, line('.')) + exe "norm! G\<C-Y>k\<C-D>" + call assert_equal(100, line('.')) + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab nofoldenable diff --git a/src/version.c b/src/version.c index db892ab487..c256520bb4 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 300, +/**/ 299, /**/ 298, |