Mercurial > vim
comparison src/channel.c @ 12031:9897241c08b5 v8.0.0896
patch 8.0.0896: cannot close a terminal window when the job ends
commit https://github.com/vim/vim/commit/dd693ce28b158ff573129ee30fe5b886544a03c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 10 23:15:19 2017 +0200
patch 8.0.0896: cannot close a terminal window when the job ends
Problem: Cannot automaticlaly close a terminal window when the job ends.
Solution: Add the ++close argument to :term. Add the term_finish option to
term_start(). (Yasuhiro Matsumoto, closes #1950) Also add
++open.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 10 Aug 2017 23:30:05 +0200 |
parents | 701aea3bc68b |
children | 810480f1ecbf |
comparison
equal
deleted
inserted
replaced
12030:4d0860530243 | 12031:9897241c08b5 |
---|---|
4417 { | 4417 { |
4418 EMSG2(_(e_invarg2), "term_name"); | 4418 EMSG2(_(e_invarg2), "term_name"); |
4419 return FAIL; | 4419 return FAIL; |
4420 } | 4420 } |
4421 } | 4421 } |
4422 else if (STRCMP(hi->hi_key, "term_finish") == 0) | |
4423 { | |
4424 if (!(supported & JO2_TERM_FINISH)) | |
4425 break; | |
4426 val = get_tv_string(item); | |
4427 if (STRCMP(val, "open") != 0 && STRCMP(val, "close") != 0) | |
4428 { | |
4429 EMSG2(_(e_invarg2), "drop"); | |
4430 return FAIL; | |
4431 } | |
4432 opt->jo_set2 |= JO2_TERM_FINISH; | |
4433 opt->jo_term_finish = *val; | |
4434 } | |
4422 #endif | 4435 #endif |
4423 else if (STRCMP(hi->hi_key, "waittime") == 0) | 4436 else if (STRCMP(hi->hi_key, "waittime") == 0) |
4424 { | 4437 { |
4425 if (!(supported & JO_WAITTIME)) | 4438 if (!(supported & JO_WAITTIME)) |
4426 break; | 4439 break; |