diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-12-03 18:09:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-03 18:09:42 +0100 |
commit | e29a4ceede086bcf5e6242b75fe8f38c30cf3945 (patch) | |
tree | 2d9e9a58595ede63af66b29c20c578850187ac5a /src/nvim/normal.c | |
parent | 3607e0b8ff772683668127b92a841a57f8412ebc (diff) | |
parent | d9dffeb4868c2c036663faa142f1ed7b1d51400a (diff) | |
download | rneovim-e29a4ceede086bcf5e6242b75fe8f38c30cf3945.tar.gz rneovim-e29a4ceede086bcf5e6242b75fe8f38c30cf3945.tar.bz2 rneovim-e29a4ceede086bcf5e6242b75fe8f38c30cf3945.zip |
Merge #5704 from jamessan/vim-7.4.1748
vim-patch:7.4.1748
vim-patch:f9660b5
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 76e3829bee..312777d3b9 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -3646,10 +3646,11 @@ 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) + } else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP) { foldOpenCursor(); + } } /* |