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:
James McCoy
2016-12-02 16:02:11 -05:00
parent 3607e0b8ff
commit fa9cd8b878
3 changed files with 3 additions and 2 deletions

View File

@@ -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();