From aa930196a764b79f0aedc25a62081360d8c5ae8c Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 11 Oct 2020 21:27:41 -0400 Subject: 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 --- src/nvim/testdir/test_gn.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/nvim/testdir') 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, [ -- cgit