diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-19 08:39:21 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-19 09:01:19 -0400 |
| commit | ff1d111120c641b37932bbb251d59cc4ba5e10d9 (patch) | |
| tree | b700f4e22730ea7074e9b7cd579cc91d4c0e1dd7 /src/nvim/testdir | |
| parent | 098e1f9dfd688fdbb5489ac1f4698c7cb5555e0e (diff) | |
| download | rneovim-ff1d111120c641b37932bbb251d59cc4ba5e10d9.tar.gz rneovim-ff1d111120c641b37932bbb251d59cc4ba5e10d9.tar.bz2 rneovim-ff1d111120c641b37932bbb251d59cc4ba5e10d9.zip | |
vim-patch:8.0.1148: gN doesn't work on last match with 'wrapscan' off
Problem: "gN" doesn't work on last match with 'wrapscan' off. (fcpg)
Solution: Adjust for searching backward. (Christian Brabandt)
https://github.com/vim/vim/commit/22ab547dc281092d6a9d397db712a11733c38e97
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_gn.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_gn.vim b/src/nvim/testdir/test_gn.vim index b2a2937d88..f56e707da1 100644 --- a/src/nvim/testdir/test_gn.vim +++ b/src/nvim/testdir/test_gn.vim @@ -111,6 +111,15 @@ func Test_gn_command() call assert_equal(['foo baz'], getline(1,'$')) sil! %d_ + " search upwards with nowrapscan set + call setline('.', ['foo', 'bar', 'foo', 'baz']) + set nowrapscan + let @/='foo' + $ + norm! dgN + call assert_equal(['foo', 'bar', '', 'baz'], getline(1,'$')) + sil! %d_ + set wrapscan&vim set belloff&vim endfu |