Skip to content

Commit 1538fc3

Browse files
committed
patch 7.4.1748
Problem: "gD" does not find match in first column of first line. (Gary Johnson) Solution: Accept match at the cursor.
1 parent fe4b186 commit 1538fc3

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/normal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4228,7 +4228,8 @@ nv_gd(
42284228
char_u *ptr;
42294229

42304230
if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
4231-
|| find_decl(ptr, len, nchar == 'd', thisblock, 0) == FAIL)
4231+
|| find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START)
4232+
== FAIL)
42324233
clearopbeep(oap);
42334234
#ifdef FEAT_FOLDING
42344235
else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)

src/testdir/test_alot.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ source test_feedkeys.vim
1212
source test_fnamemodify.vim
1313
source test_file_perm.vim
1414
source test_glob2regpat.vim
15+
source test_goto.vim
1516
source test_help_tagjump.vim
1617
source test_join.vim
1718
source test_lispwords.vim

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1748,
751753
/**/
752754
1747,
753755
/**/

0 commit comments

Comments
 (0)