From: Bram Moolenaar Date: Fri, 11 Aug 2017 13:45:28 +0000 (+0200) Subject: patch 8.0.0897: wrong error message for invalid term_finish value X-Git-Tag: v8.0.0897 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1237f18143d9fe5b2a6ce981dee415736858789;p=thirdparty%2Fvim.git 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(). --- 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, /**/