This commit is contained in:
Jan Edmund Lazo
2018-08-16 13:23:51 -04:00
parent 7482aef113
commit 0223c81457
4 changed files with 35 additions and 32 deletions

View File

@@ -3129,13 +3129,12 @@ size_t find_ident_at_pos(win_T *wp, linenr_T lnum, colnr_T startcol,
}
if (ptr[col] == NUL || (i == 0 && this_class != 2)) {
/*
* didn't find an identifier or string
*/
if (find_type & FIND_STRING)
// didn't find an identifier or string
if (find_type & FIND_STRING) {
EMSG(_("E348: No string under cursor"));
else
} else {
EMSG(_(e_noident));
}
return 0;
}
ptr += col;