mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch:7.4.1748
Problem: "gD" does not find match in first column of first line. (Gary
Johnson)
Solution: Accept match at the cursor.
1538fc34fa
This commit is contained in:
@@ -3646,7 +3646,7 @@ nv_gd (
|
||||
size_t len;
|
||||
char_u *ptr;
|
||||
if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
|
||||
|| !find_decl(ptr, len, nchar == 'd', thisblock, 0))
|
||||
|| !find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START))
|
||||
clearopbeep(oap);
|
||||
else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)
|
||||
foldOpenCursor();
|
||||
|
Reference in New Issue
Block a user