summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-11 15:45:28 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-11 15:45:28 +0200
commitf1237f18143d9fe5b2a6ce981dee415736858789 (patch)
treeed155436a168666e447addb5f19d4d057bc7f5db
parentdd693ce28b158ff573129ee30fe5b886544a03c2 (diff)
patch 8.0.0897: wrong error message for invalid term_finish valuev8.0.0897
Problem: Wrong error message for invalid term_finish value Solution: Pass the right argument to emsg().
-rw-r--r--src/channel.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index 4e1458c5bc..19d3c5dcec 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4426,7 +4426,7 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported)
val = get_tv_string(item);
if (STRCMP(val, "open") != 0 && STRCMP(val, "close") != 0)
{
- EMSG2(_(e_invarg2), "drop");
+ EMSG2(_(e_invarg2), val);
return FAIL;
}
opt->jo_set2 |= JO2_TERM_FINISH;
diff --git a/src/version.c b/src/version.c
index 5459482d63..6a19bd1476 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 897,
+/**/
896,
/**/
895,