aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-07-11 08:27:05 +0800
committerJames McCoy <jamessan@jamessan.com>2017-07-13 23:15:29 -0400
commit06f4b963222efd2a986e79b7390b50d6e42941be (patch)
treeb9167fa9c1f907da976029a1a956f71e3e93cce8 /src
parentc805f2cf54aa4ab066bb9e7f3d5b7cc40d04004e (diff)
downloadrneovim-06f4b963222efd2a986e79b7390b50d6e42941be.tar.gz
rneovim-06f4b963222efd2a986e79b7390b50d6e42941be.tar.bz2
rneovim-06f4b963222efd2a986e79b7390b50d6e42941be.zip
lint
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds.c3
-rw-r--r--src/nvim/window.c10
2 files changed, 8 insertions, 5 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index a534a476df..0987cb3915 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -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,
EW_FILE|EW_SILENT) == FAIL
|| filecount == 0) {
- if (!got_int)
+ if (!got_int) {
EMSG2(_("E151: No match: %s"), NameBuff);
+ }
return;
}
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 079e0647e1..29f5412ba0 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -5533,7 +5533,7 @@ int match_add(win_T *wp, const char *const grp, const char *const pat,
}
if (id < -1 || id == 0) {
EMSGN(_("E799: Invalid ID: %" PRId64
- " (must be greater than or equal to 1)"),
+ " (must be greater than or equal to 1)"),
id);
return -1;
}
@@ -5705,10 +5705,11 @@ int match_delete(win_T *wp, int id, int perr)
int rtype = SOME_VALID;
if (id < 1) {
- if (perr == TRUE)
+ if (perr) {
EMSGN(_("E802: Invalid ID: %" PRId64
- " (must be greater than or equal to 1)"),
+ " (must be greater than or equal to 1)"),
id);
+ }
return -1;
}
while (cur != NULL && cur->id != id) {
@@ -5716,8 +5717,9 @@ int match_delete(win_T *wp, int id, int perr)
cur = cur->next;
}
if (cur == NULL) {
- if (perr == TRUE)
+ if (perr) {
EMSGN(_("E803: ID not found: %" PRId64), id);
+ }
return -1;
}
if (cur == prev)