Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
11966:08cca31b0fb9 | 11967:12833414cc02 |
---|---|
4389 { | 4389 { |
4390 EMSG2(_(e_invarg2), "exit_cb"); | 4390 EMSG2(_(e_invarg2), "exit_cb"); |
4391 return FAIL; | 4391 return FAIL; |
4392 } | 4392 } |
4393 } | 4393 } |
4394 else if (STRCMP(hi->hi_key, "term_name") == 0) | |
4395 { | |
4396 if (!(supported & JO2_TERM_NAME)) | |
4397 break; | |
4398 opt->jo_set2 |= JO2_TERM_NAME; | |
4399 opt->jo_term_name = get_tv_string_chk(item); | |
4400 if (opt->jo_term_name == NULL) | |
4401 { | |
4402 EMSG2(_(e_invarg2), "term_name"); | |
4403 return FAIL; | |
4404 } | |
4405 } | |
4394 else if (STRCMP(hi->hi_key, "waittime") == 0) | 4406 else if (STRCMP(hi->hi_key, "waittime") == 0) |
4395 { | 4407 { |
4396 if (!(supported & JO_WAITTIME)) | 4408 if (!(supported & JO_WAITTIME)) |
4397 break; | 4409 break; |
4398 opt->jo_set |= JO_WAITTIME; | 4410 opt->jo_set |= JO_WAITTIME; |