This commit is contained in:
James McCoy
2016-12-02 20:29:00 -05:00
parent a4f646dde8
commit d9dffeb486

View File

@@ -3646,11 +3646,12 @@ nv_gd (
size_t len; size_t len;
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, SEARCH_START)) || !find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START)) {
clearopbeep(oap); 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(); foldOpenCursor();
} }
}
/* /*
* Search for variable declaration of "ptr[len]". * Search for variable declaration of "ptr[len]".