0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

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().
This commit is contained in:
Bram Moolenaar
2017-08-11 15:45:28 +02:00
parent dd693ce28b
commit f1237f1814
2 changed files with 3 additions and 1 deletions

View File

@@ -4426,7 +4426,7 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported)
val = get_tv_string(item); val = get_tv_string(item);
if (STRCMP(val, "open") != 0 && STRCMP(val, "close") != 0) if (STRCMP(val, "open") != 0 && STRCMP(val, "close") != 0)
{ {
EMSG2(_(e_invarg2), "drop"); EMSG2(_(e_invarg2), val);
return FAIL; return FAIL;
} }
opt->jo_set2 |= JO2_TERM_FINISH; opt->jo_set2 |= JO2_TERM_FINISH;

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
897,
/**/ /**/
896, 896,
/**/ /**/