diff options
author | James McCoy <jamessan@jamessan.com> | 2016-12-02 16:02:11 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-12-02 20:30:03 -0500 |
commit | fa9cd8b878c3100f893f4dc958ca62a7e18d2145 (patch) | |
tree | 96f77d30189c951bca1d853a675bc4de30a6afca /src/nvim/normal.c | |
parent | 3607e0b8ff772683668127b92a841a57f8412ebc (diff) | |
download | rneovim-fa9cd8b878c3100f893f4dc958ca62a7e18d2145.tar.gz rneovim-fa9cd8b878c3100f893f4dc958ca62a7e18d2145.tar.bz2 rneovim-fa9cd8b878c3100f893f4dc958ca62a7e18d2145.zip |
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
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |