summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-05 14:50:12 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-05 14:50:12 +0200
commit78712a7733839598fbc4a61d0582893d22e8adf3 (patch)
tree5948c59b752fe2bf8e2d06c26030f3fd06f0e71e /src/channel.c
parent69198197fd4b061be7cadcf441cd8a7246a17148 (diff)
downloadvim-git-78712a7733839598fbc4a61d0582893d22e8adf3.tar.gz
patch 8.0.0864: cannot specify the name of a terminalv8.0.0864
Problem: Cannot specify the name of a terminal. Solution: Add the "term_name" option. (Yasuhiro Matsumoto, closes #1936)
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index b19f08992..801e370cc 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4391,6 +4391,18 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported)
return FAIL;
}
}
+ else if (STRCMP(hi->hi_key, "term_name") == 0)
+ {
+ if (!(supported & JO2_TERM_NAME))
+ break;
+ opt->jo_set2 |= JO2_TERM_NAME;
+ opt->jo_term_name = get_tv_string_chk(item);
+ if (opt->jo_term_name == NULL)
+ {
+ EMSG2(_(e_invarg2), "term_name");
+ return FAIL;
+ }
+ }
else if (STRCMP(hi->hi_key, "waittime") == 0)
{
if (!(supported & JO_WAITTIME))