summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-16 09:13:34 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-16 09:13:34 +0200
commit1538fc34fae3fae39773ca43f6ff52401fce61d8 (patch)
tree765ccc4a8a86d6585b86b253b8907069525ffc40 /src/normal.c
parentfe4b18640656ddea41f60cf7a76956c9cc5494d6 (diff)
downloadvim-git-1538fc34fae3fae39773ca43f6ff52401fce61d8.tar.gz
patch 7.4.1748v7.4.1748
Problem: "gD" does not find match in first column of first line. (Gary Johnson) Solution: Accept match at the cursor.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c
index f9a0124e2..7c15c1552 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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)