comparison src/normal.c @ 8923:face93b02af4 v7.4.1748

commit https://github.com/vim/vim/commit/1538fc34fae3fae39773ca43f6ff52401fce61d8 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 16 09:13:34 2016 +0200 patch 7.4.1748 Problem: "gD" does not find match in first column of first line. (Gary Johnson) Solution: Accept match at the cursor.
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Apr 2016 09:15:04 +0200
parents 8a106a24d128
children 0d52ddff8db4
comparison
equal deleted inserted replaced
8922:1f9cb2eb4103 8923:face93b02af4
4226 { 4226 {
4227 int len; 4227 int len;
4228 char_u *ptr; 4228 char_u *ptr;
4229 4229
4230 if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0 4230 if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
4231 || find_decl(ptr, len, nchar == 'd', thisblock, 0) == FAIL) 4231 || find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START)
4232 == FAIL)
4232 clearopbeep(oap); 4233 clearopbeep(oap);
4233 #ifdef FEAT_FOLDING 4234 #ifdef FEAT_FOLDING
4234 else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP) 4235 else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)
4235 foldOpenCursor(); 4236 foldOpenCursor();
4236 #endif 4237 #endif