comparison src/channel.c @ 12072:f4e1e1e6886b v8.0.0916

patch 8.0.0916: cannot specify properties of window for terminal open commit https://github.com/vim/vim/commit/37c45835945fc433a3bb85fcfc0b4fd58b1ee0e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 12 16:01:04 2017 +0200 patch 8.0.0916: cannot specify properties of window for terminal open Problem: Cannot specify properties of window for when opening a window for a finished terminal job. Solution: Add "term_opencmd".
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Aug 2017 16:15:04 +0200
parents 407a475c67fd
children 0a61213afdd2
comparison
equal deleted inserted replaced
12071:ca0f663ea428 12072:f4e1e1e6886b
4432 return FAIL; 4432 return FAIL;
4433 } 4433 }
4434 opt->jo_set2 |= JO2_TERM_FINISH; 4434 opt->jo_set2 |= JO2_TERM_FINISH;
4435 opt->jo_term_finish = *val; 4435 opt->jo_term_finish = *val;
4436 } 4436 }
4437 else if (STRCMP(hi->hi_key, "term_opencmd") == 0)
4438 {
4439 char_u *p;
4440
4441 if (!(supported2 & JO2_TERM_OPENCMD))
4442 break;
4443 opt->jo_set2 |= JO2_TERM_OPENCMD;
4444 p = opt->jo_term_opencmd = get_tv_string_chk(item);
4445 if (p != NULL)
4446 {
4447 /* Must have %d and no other %. */
4448 p = vim_strchr(p, '%');
4449 if (p != NULL && (p[1] != 'd'
4450 || vim_strchr(p + 2, '%') != NULL))
4451 p = NULL;
4452 }
4453 if (p == NULL)
4454 {
4455 EMSG2(_(e_invarg2), "term_opencmd");
4456 return FAIL;
4457 }
4458 }
4437 else if (STRCMP(hi->hi_key, "term_rows") == 0) 4459 else if (STRCMP(hi->hi_key, "term_rows") == 0)
4438 { 4460 {
4439 if (!(supported2 & JO2_TERM_ROWS)) 4461 if (!(supported2 & JO2_TERM_ROWS))
4440 break; 4462 break;
4441 opt->jo_set |= JO2_TERM_ROWS; 4463 opt->jo_set |= JO2_TERM_ROWS;