]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0300: Missing test for what patch v9.1.0285 fixes v9.1.0300
authorLuuk van Baal <luukvbaal@gmail.com>
Wed, 10 Apr 2024 15:33:43 +0000 (17:33 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 10 Apr 2024 15:33:43 +0000 (17:33 +0200)
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>
src/testdir/test_normal.vim
src/version.c

index 4f990954150527da3833117385365d9b20c30c8e..7fb6a4bf530986960d950128206e8a1afa963e5c 100644 (file)
@@ -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
index db892ab487972e7b670054fc4e7aa45528b2bebf..c256520bb452c19614d2175f50dc555494682ed2 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    300,
 /**/
     299,
 /**/