mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
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.28f224b2c1
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)820d55a50b
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)bd6428b9e7
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)c6ed254d9f
vim-patch:8.2.1831: file missing from distribution Problem: File missing from distribution. Solution: Add the github code analyses file.ef16c90423
This commit is contained in:
@@ -4186,7 +4186,7 @@ current_search(
|
|||||||
curwin->w_cursor = end_pos;
|
curwin->w_cursor = end_pos;
|
||||||
if (lt(VIsual, end_pos) && forward) {
|
if (lt(VIsual, end_pos) && forward) {
|
||||||
dec_cursor();
|
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
|
curwin->w_cursor = pos; // put the cursor on the start of the match
|
||||||
}
|
}
|
||||||
VIsual_active = true;
|
VIsual_active = true;
|
||||||
|
@@ -158,7 +158,16 @@ func Test_gn_command()
|
|||||||
|
|
||||||
set wrapscan&vim
|
set wrapscan&vim
|
||||||
set belloff&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()
|
func Test_gn_multi_line()
|
||||||
new
|
new
|
||||||
|
Reference in New Issue
Block a user