mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
lint
This commit is contained in:
@@ -5023,8 +5023,9 @@ static void helptags_one(char_u *dir, char_u *ext, char_u *tagfname,
|
|||||||
if (gen_expand_wildcards(1, buff_list, &filecount, &files,
|
if (gen_expand_wildcards(1, buff_list, &filecount, &files,
|
||||||
EW_FILE|EW_SILENT) == FAIL
|
EW_FILE|EW_SILENT) == FAIL
|
||||||
|| filecount == 0) {
|
|| filecount == 0) {
|
||||||
if (!got_int)
|
if (!got_int) {
|
||||||
EMSG2(_("E151: No match: %s"), NameBuff);
|
EMSG2(_("E151: No match: %s"), NameBuff);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5705,10 +5705,11 @@ int match_delete(win_T *wp, int id, int perr)
|
|||||||
int rtype = SOME_VALID;
|
int rtype = SOME_VALID;
|
||||||
|
|
||||||
if (id < 1) {
|
if (id < 1) {
|
||||||
if (perr == TRUE)
|
if (perr) {
|
||||||
EMSGN(_("E802: Invalid ID: %" PRId64
|
EMSGN(_("E802: Invalid ID: %" PRId64
|
||||||
" (must be greater than or equal to 1)"),
|
" (must be greater than or equal to 1)"),
|
||||||
id);
|
id);
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
while (cur != NULL && cur->id != id) {
|
while (cur != NULL && cur->id != id) {
|
||||||
@@ -5716,8 +5717,9 @@ int match_delete(win_T *wp, int id, int perr)
|
|||||||
cur = cur->next;
|
cur = cur->next;
|
||||||
}
|
}
|
||||||
if (cur == NULL) {
|
if (cur == NULL) {
|
||||||
if (perr == TRUE)
|
if (perr) {
|
||||||
EMSGN(_("E803: ID not found: %" PRId64), id);
|
EMSGN(_("E803: ID not found: %" PRId64), id);
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (cur == prev)
|
if (cur == prev)
|
||||||
|
Reference in New Issue
Block a user