aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2020-05-16 22:25:51 +0900
committerGitHub <noreply@github.com>2020-05-16 15:25:51 +0200
commitd7d69fed18c2cd59d28ff12ef72f6fb2a98a7b66 (patch)
treec854446549f57498c8e07481a721c37c6a2e2d32 /src/nvim/eval.c
parentf3d0a1741ef69222ab7893ce4f801d26b6b3fb00 (diff)
downloadrneovim-d7d69fed18c2cd59d28ff12ef72f6fb2a98a7b66.tar.gz
rneovim-d7d69fed18c2cd59d28ff12ef72f6fb2a98a7b66.tar.bz2
rneovim-d7d69fed18c2cd59d28ff12ef72f6fb2a98a7b66.zip
vim-patch:8.1.1084: cannot delete a match from another window (#12325)
Problem: Cannot delete a match from another window. (Paul Jolly) Solution: Add window ID argument to matchdelete(), clearmatches(), getmatches() and setmatches(). (Andy Massimino, closes vim/vim#4178) https://github.com/vim/vim/commit/aff749145e23c0f20b5158d1d3a942948ed138e3
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 4a0876a952..4acee7b453 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -63,6 +63,7 @@ static char *e_missbrac = N_("E111: Missing ']'");
static char *e_dictrange = N_("E719: Cannot use [:] with a Dictionary");
static char *e_illvar = N_("E461: Illegal variable name: %s");
static char *e_cannot_mod = N_("E995: Cannot modify existing variable");
+static char *e_invalwindow = N_("E957: Invalid window number");
// TODO(ZyX-I): move to eval/executor
static char *e_letwrong = N_("E734: Wrong variable type for %s=");
@@ -6776,7 +6777,7 @@ int matchadd_dict_arg(typval_T *tv, const char **conceal_char,
if ((di = tv_dict_find(tv->vval.v_dict, S_LEN("window"))) != NULL) {
*win = find_win_by_nr_or_id(&di->di_tv);
if (*win == NULL) {
- EMSG(_("E957: Invalid window number"));
+ EMSG(_(e_invalwindow));
return FAIL;
}
}