From f1237f18143d9fe5b2a6ce981dee415736858789 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 11 Aug 2017 15:45:28 +0200 Subject: patch 8.0.0897: wrong error message for invalid term_finish value Problem: Wrong error message for invalid term_finish value Solution: Pass the right argument to emsg(). --- src/channel.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 @@ -769,6 +769,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 897, /**/ 896, /**/ -- cgit v1.2.3