Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
18499:b27ed4764264 | 18500:c0445cb7cfe0 |
---|---|
133 let @/ = 'a' | 133 let @/ = 'a' |
134 exe "norm! 0fhvhhgNgU" | 134 exe "norm! 0fhvhhgNgU" |
135 call assert_equal(['ABCDEFGHi'], getline(1,'$')) | 135 call assert_equal(['ABCDEFGHi'], getline(1,'$')) |
136 call setline('.', ['abcdefghi']) | 136 call setline('.', ['abcdefghi']) |
137 let @/ = 'b' | 137 let @/ = 'b' |
138 " this gn wraps around the end of the file | |
138 exe "norm! 0fhvhhgngU" | 139 exe "norm! 0fhvhhgngU" |
139 call assert_equal(['abcdefghi'], getline(1,'$')) | 140 call assert_equal(['aBCDEFGHi'], getline(1,'$')) |
140 sil! %d _ | 141 sil! %d _ |
141 call setline('.', ['abcdefghi']) | 142 call setline('.', ['abcdefghi']) |
142 let @/ = 'f' | 143 let @/ = 'f' |
143 exe "norm! 0vllgngU" | 144 exe "norm! 0vllgngU" |
144 call assert_equal(['ABCDEFghi'], getline(1,'$')) | 145 call assert_equal(['ABCDEFghi'], getline(1,'$')) |