From: Bram Moolenaar Date: Sat, 16 Apr 2016 07:13:34 +0000 (+0200) Subject: patch 7.4.1748 X-Git-Tag: v7.4.1748 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1538fc34fae3fae39773ca43f6ff52401fce61d8;p=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. --- 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) diff --git a/src/testdir/test_alot.vim b/src/testdir/test_alot.vim index d393fe78a..5637a8e0c 100644 --- a/src/testdir/test_alot.vim +++ b/src/testdir/test_alot.vim @@ -12,6 +12,7 @@ source test_feedkeys.vim source test_fnamemodify.vim source test_file_perm.vim source test_glob2regpat.vim +source test_goto.vim source test_help_tagjump.vim source test_join.vim source test_lispwords.vim diff --git a/src/version.c b/src/version.c index d7544b830..d26268e1e 100644 --- a/src/version.c +++ b/src/version.c @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1748, /**/ 1747, /**/