summaryrefslogtreecommitdiff
path: root/src/testdir/test_gn.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-11 20:44:15 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-11 20:44:15 +0200
commitc07b7f701fb30d26112051e4ec737c7e3db72357 (patch)
tree03f08a9ee105be8c855e5c3c97b42e1c9d6fac6d /src/testdir/test_gn.vim
parent62cd26a2294b7a5eead7c145e9bbc7c75f3bb801 (diff)
downloadvim-git-c07b7f701fb30d26112051e4ec737c7e3db72357.tar.gz
patch 8.2.1837: using "gn" after "gN" does not workv8.2.1837
Problem: Using "gn" after "gN" does not work. Solution: Extend the other end of the Visual area. (closes #7109)
Diffstat (limited to 'src/testdir/test_gn.vim')
-rw-r--r--src/testdir/test_gn.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_gn.vim b/src/testdir/test_gn.vim
index a2a7ac3f0..eb237a25c 100644
--- a/src/testdir/test_gn.vim
+++ b/src/testdir/test_gn.vim
@@ -183,6 +183,22 @@ func Test_gN_repeat()
bwipe!
endfunc
+func Test_gN_then_gn()
+ new
+
+ call setline(1, 'this list is a list with a list of a last.')
+ /l.st
+ normal $gNgNgnx
+ call assert_equal('last', @")
+
+ call setline(1, 'this list is a list with a lust of a last.')
+ /l.st
+ normal $gNgNgNgnx
+ call assert_equal('lust of a last', @")
+
+ bwipe!
+endfunc
+
func Test_gn_multi_line()
new
call setline(1, [