aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-11-06 00:21:26 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-11-09 09:58:31 -0500
commitb8a56e0986c92f09b5a98003065630fd4c1bb48d (patch)
treeebbfef7be50879ab7f65bd60329c5cfc2d9009c9 /src/nvim/testdir
parent5689008060d29dd7b45157a8f82cb96018c284e8 (diff)
downloadrneovim-b8a56e0986c92f09b5a98003065630fd4c1bb48d.tar.gz
rneovim-b8a56e0986c92f09b5a98003065630fd4c1bb48d.tar.bz2
rneovim-b8a56e0986c92f09b5a98003065630fd4c1bb48d.zip
vim-patch:8.1.2244: 'wrapscan' is not used for "gn"
Problem: 'wrapscan' is not used for "gn". Solution: Only reset 'wrapscan' for the first search round. (closes vim/vim#5164) https://github.com/vim/vim/commit/82cf7f6df751505da285815a791463a049587849
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_gn.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_gn.vim b/src/nvim/testdir/test_gn.vim
index 834397126f..d41675be0c 100644
--- a/src/nvim/testdir/test_gn.vim
+++ b/src/nvim/testdir/test_gn.vim
@@ -136,8 +136,9 @@ func Test_gn_command()
call assert_equal(['ABCDEFGHi'], getline(1,'$'))
call setline('.', ['abcdefghi'])
let @/ = 'b'
+ " this gn wraps around the end of the file
exe "norm! 0fhvhhgngU"
- call assert_equal(['abcdefghi'], getline(1,'$'))
+ call assert_equal(['aBCDEFGHi'], getline(1,'$'))
sil! %d _
call setline('.', ['abcdefghi'])
let @/ = 'f'