diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-26 14:42:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-26 14:42:09 +0200 |
commit | 453c19257f6d97904ec2e3823e88e63c983f2f9a (patch) | |
tree | d976cfc0526b60f792ffef69023bcad37c2c3420 /src/testdir/test_gn.vim | |
parent | c7488a7fc8ed0d4fd9cc440117ff848170321517 (diff) | |
download | vim-git-453c19257f6d97904ec2e3823e88e63c983f2f9a.tar.gz |
patch 8.1.2218: "gN" is off by one in Visual modev8.1.2218
Problem: "gN" is off by one in Visual mode.
Solution: Check moving forward. (Christian Brabandt, #5075)
Diffstat (limited to 'src/testdir/test_gn.vim')
-rw-r--r-- | src/testdir/test_gn.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_gn.vim b/src/testdir/test_gn.vim index ecf9b8289..9edf0a21e 100644 --- a/src/testdir/test_gn.vim +++ b/src/testdir/test_gn.vim @@ -148,6 +148,11 @@ func Test_gn_command() norm! gg0f7vhhhhgnd call assert_equal(['12348'], getline(1,'$')) sil! %d _ + call setline('.', ['12345678']) + let @/ = '5' + norm! gg0f2vf7gNd + call assert_equal(['1678'], getline(1,'$')) + sil! %d _ set wrapscan&vim endfu |