From fa9cd8b878c3100f893f4dc958ca62a7e18d2145 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 2 Dec 2016 16:02:11 -0500 Subject: 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. https://github.com/vim/vim/commit/1538fc34fae3fae39773ca43f6ff52401fce61d8 --- src/nvim/normal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 76e3829bee..a85c350e7b 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -3646,7 +3646,7 @@ nv_gd ( size_t len; char_u *ptr; if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0 - || !find_decl(ptr, len, nchar == 'd', thisblock, 0)) + || !find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START)) clearopbeep(oap); else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP) foldOpenCursor(); -- cgit