mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
fe4b186406
commit
1538fc34fa
@ -4228,7 +4228,8 @@ nv_gd(
|
|||||||
char_u *ptr;
|
char_u *ptr;
|
||||||
|
|
||||||
if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
|
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);
|
clearopbeep(oap);
|
||||||
#ifdef FEAT_FOLDING
|
#ifdef FEAT_FOLDING
|
||||||
else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)
|
else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)
|
||||||
|
@ -12,6 +12,7 @@ source test_feedkeys.vim
|
|||||||
source test_fnamemodify.vim
|
source test_fnamemodify.vim
|
||||||
source test_file_perm.vim
|
source test_file_perm.vim
|
||||||
source test_glob2regpat.vim
|
source test_glob2regpat.vim
|
||||||
|
source test_goto.vim
|
||||||
source test_help_tagjump.vim
|
source test_help_tagjump.vim
|
||||||
source test_join.vim
|
source test_join.vim
|
||||||
source test_lispwords.vim
|
source test_lispwords.vim
|
||||||
|
@ -748,6 +748,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1748,
|
||||||
/**/
|
/**/
|
||||||
1747,
|
1747,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user