aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_gn.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-11 21:27:41 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-11 22:29:58 -0400
commitaa930196a764b79f0aedc25a62081360d8c5ae8c (patch)
treece9bf42dfeb90f981e1f898d615cc44a1ace88cb /src/nvim/testdir/test_gn.vim
parentac5af6051b72ffff1bba3ee704a16b58036e51eb (diff)
downloadrneovim-aa930196a764b79f0aedc25a62081360d8c5ae8c.tar.gz
rneovim-aa930196a764b79f0aedc25a62081360d8c5ae8c.tar.bz2
rneovim-aa930196a764b79f0aedc25a62081360d8c5ae8c.zip
vim-patch:8.2.1837: using "gn" after "gN" does not work
Problem: Using "gn" after "gN" does not work. Solution: Extend the other end of the Visual area. (closes vim/vim#7109) https://github.com/vim/vim/commit/c07b7f701fb30d26112051e4ec737c7e3db72357 N/A patches for version.c: vim-patch:8.2.1834: PyEval_InitThreads() is deprecated in Python 3.9 Problem: PyEval_InitThreads() is deprecated in Python 3.9. Solution: Do not call PyEval_InitThreads in Python 3.9 and later. (Ken Takata, closes vim/vim#7113) Avoid warnings for functions. https://github.com/vim/vim/commit/efc0d94afc48a03b07955e91315e7e67945cd079
Diffstat (limited to 'src/nvim/testdir/test_gn.vim')
-rw-r--r--src/nvim/testdir/test_gn.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_gn.vim b/src/nvim/testdir/test_gn.vim
index 8f800a7c79..9acec51913 100644
--- a/src/nvim/testdir/test_gn.vim
+++ b/src/nvim/testdir/test_gn.vim
@@ -169,6 +169,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, [