diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-11 01:56:46 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-11 09:18:02 -0400 |
commit | 2f9252304cc001e7de0f445ef382f3bb79a4382c (patch) | |
tree | e65a4a70bea29731e3979780c35e0a3767509c6c | |
parent | 4a54472098b3c321f5d51eba7e4e69e791517927 (diff) | |
download | rneovim-2f9252304cc001e7de0f445ef382f3bb79a4382c.tar.gz rneovim-2f9252304cc001e7de0f445ef382f3bb79a4382c.tar.bz2 rneovim-2f9252304cc001e7de0f445ef382f3bb79a4382c.zip |
vim-patch:8.2.1823: "gN" does not select the matched string
Problem: "gN" does not select the matched string.
Solution: Move the cursor to the start of the match.
https://github.com/vim/vim/commit/28f224b2c1bd2fcdee7b4fe2c64826e1cff08f39
N/A patches for version.c:
vim-patch:8.2.1820: Vim9: crash when error happens in timer callback
Problem: Vim9: crash when error happens in timer callback.
Solution: Check that current_exception is not NULL. (closes vim/vim#7100)
https://github.com/vim/vim/commit/820d55a50bbc8c0ad0505b7e4302a734896b6bab
vim-patch:8.2.1829: warnings when executing Github actions
Problem: Warnings when executing Github actions.
Solution: Use another method to set environment variables. (Ken Takata,
closes vim/vim#7107)
https://github.com/vim/vim/commit/bd6428b9e79ed85b54ea7eaa11871fa09d63ab6f
vim-patch:8.2.1830: MS-Windows: Python3 issue with stdin
Problem: MS-Windows: Python3 issue with stdin.
Solution: Check if stdin is readable. (Ken Takata, closes vim/vim#7106)
https://github.com/vim/vim/commit/c6ed254d9fda0ff54cdedce5597ff3e0d0218d18
vim-patch:8.2.1831: file missing from distribution
Problem: File missing from distribution.
Solution: Add the github code analyses file.
https://github.com/vim/vim/commit/ef16c90423ae579927e6294c1ccfd17c5a1c113c
-rw-r--r-- | src/nvim/search.c | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_gn.vim | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index ea2107c5c7..82f2cf28ab 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -4186,7 +4186,7 @@ current_search( curwin->w_cursor = end_pos; if (lt(VIsual, end_pos) && forward) { dec_cursor(); - } else if (VIsual_active && lt(curwin->w_cursor, VIsual)) { + } else if (VIsual_active && lt(curwin->w_cursor, VIsual) && forward) { curwin->w_cursor = pos; // put the cursor on the start of the match } VIsual_active = true; diff --git a/src/nvim/testdir/test_gn.vim b/src/nvim/testdir/test_gn.vim index d41675be0c..8f800a7c79 100644 --- a/src/nvim/testdir/test_gn.vim +++ b/src/nvim/testdir/test_gn.vim @@ -158,7 +158,16 @@ func Test_gn_command() set wrapscan&vim set belloff&vim -endfu +endfunc + +func Test_gN_repeat() + new + call setline(1, 'this list is a list with a list of a list.') + /list + normal $gNgNgNx + call assert_equal('list with a list of a list', @") + bwipe! +endfunc func Test_gn_multi_line() new |