diff options
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_search.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index 2a660c61b8..d13e65458e 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -461,6 +461,15 @@ func Test_search_cmdline7() " moves to next match of previous search pattern, just like /<cr> call feedkeys("/\<c-t>\<cr>", 'tx') call assert_equal([0,1,7,0], getpos('.')) + + " using an offset uses the last search pattern + call cursor(1, 1) + call setline(1, ['1 bbvimb', ' 2 bbvimb']) + let @/ = 'b' + call feedkeys("//e\<c-g>\<cr>", 'tx') + call assert_equal('1 bbvimb', getline('.')) + call assert_equal(4, col('.')) + set noincsearch call test_override("char_avail", 0) bw! |