]> granicus.if.org Git - vim/commitdiff
patch 7.4.1748 v7.4.1748
authorBram Moolenaar <Bram@vim.org>
Sat, 16 Apr 2016 07:13:34 +0000 (09:13 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Apr 2016 07:13:34 +0000 (09:13 +0200)
Problem:    "gD" does not find match in first column of first line. (Gary
            Johnson)
Solution:   Accept match at the cursor.

src/normal.c
src/testdir/test_alot.vim
src/version.c

index f9a0124e206af3d4ec72475699e1c0e4b15329e1..7c15c15521c0465aa2a5fec1ab45f2ace0761587 100644 (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)
index d393fe78a4e06ce4267c92208a056489121d6417..5637a8e0c34f880e1e621b8b038c3592faf9f9e0 100644 (file)
@@ -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
index d7544b830023a762f1cf3f55e88689814ee65de2..d26268e1efc64ab2b122e04108fb68365852f514 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1748,
 /**/
     1747,
 /**/