]> granicus.if.org Git - vim/commitdiff
patch 8.0.0897: wrong error message for invalid term_finish value v8.0.0897
authorBram Moolenaar <Bram@vim.org>
Fri, 11 Aug 2017 13:45:28 +0000 (15:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 11 Aug 2017 13:45:28 +0000 (15:45 +0200)
Problem:    Wrong error message for invalid term_finish value
Solution:   Pass the right argument to emsg().

src/channel.c
src/version.c

index 4e1458c5bc01f253f010ef9a554be667a688bcf8..19d3c5dcec74ffd6a2378a3b9bbfc83be4f1b6ab 100644 (file)
@@ -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;
index 5459482d630ceb9d7b3f0a7f3b80fb2fc038e2f8..6a19bd14762cd64426c4eb6475fed699e4dd4729 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    897,
 /**/
     896,
 /**/