Mercurial > vim
diff src/channel.c @ 11967:12833414cc02 v8.0.0864
patch 8.0.0864: cannot specify the name of a terminal
commit https://github.com/vim/vim/commit/78712a7733839598fbc4a61d0582893d22e8adf3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 5 14:50:12 2017 +0200
patch 8.0.0864: cannot specify the name of a terminal
Problem: Cannot specify the name of a terminal.
Solution: Add the "term_name" option. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/1936)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 05 Aug 2017 15:00:03 +0200 |
parents | 91a26b7a4119 |
children | 5dc3730de58d |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -4391,6 +4391,18 @@ get_job_options(typval_T *tv, jobopt_T * 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))