Skip to content

Commit

Permalink
patch 9.1.0300: Missing test for what patch v9.1.0285 fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
luukvbaal authored and chrisbra committed Apr 10, 2024
1 parent 7f52021 commit aa8e22b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/testdir/test_normal.vim
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
300,
/**/
299,
/**/
Expand Down

0 comments on commit aa8e22b

Please sign in to comment.