0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.1748

Problem:    "gD" does not find match in first column of first line. (Gary
            Johnson)
Solution:   Accept match at the cursor.
This commit is contained in:
Bram Moolenaar
2016-04-16 09:13:34 +02:00
parent fe4b186406
commit 1538fc34fa
3 changed files with 5 additions and 1 deletions

View File

@@ -4228,7 +4228,8 @@ nv_gd(
char_u *ptr;
if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
|| find_decl(ptr, len, nchar == 'd', thisblock, 0) == FAIL)
|| find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START)
== FAIL)
clearopbeep(oap);
#ifdef FEAT_FOLDING
else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)