diff src/testdir/test_gn.vim @ 18500:c0445cb7cfe0 v8.1.2244

patch 8.1.2244: 'wrapscan' is not used for "gn" Commit: https://github.com/vim/vim/commit/82cf7f6df751505da285815a791463a049587849 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 2 23:22:47 2019 +0100 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 https://github.com/vim/vim/issues/5164)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Nov 2019 23:30:04 +0100
parents 35e0ab1f2975
children a4bd28e2cf1d
line wrap: on
line diff
--- a/src/testdir/test_gn.vim
+++ b/src/testdir/test_gn.vim
@@ -135,8 +135,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'