comparison src/structs.h @ 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 12833414cc02
children 2796a2c9fc17
comparison
equal deleted inserted replaced
12030:4d0860530243 12031:9897241c08b5
1683 #define JO_ALL 0x7fffffff 1683 #define JO_ALL 0x7fffffff
1684 1684
1685 #define JO2_OUT_MSG 0x0001 /* "out_msg" */ 1685 #define JO2_OUT_MSG 0x0001 /* "out_msg" */
1686 #define JO2_ERR_MSG 0x0002 /* "err_msg" (JO_OUT_ << 1) */ 1686 #define JO2_ERR_MSG 0x0002 /* "err_msg" (JO_OUT_ << 1) */
1687 #define JO2_TERM_NAME 0x0004 /* "term_name" */ 1687 #define JO2_TERM_NAME 0x0004 /* "term_name" */
1688 #define JO2_ALL 0x0007 1688 #define JO2_TERM_FINISH 0x0008 /* "term_finish" */
1689 #define JO2_ALL 0x000F
1689 1690
1690 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) 1691 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
1691 #define JO_CB_ALL \ 1692 #define JO_CB_ALL \
1692 (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK + JO_CLOSE_CALLBACK) 1693 (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK + JO_CLOSE_CALLBACK)
1693 #define JO_TIMEOUT_ALL (JO_TIMEOUT + JO_OUT_TIMEOUT + JO_ERR_TIMEOUT) 1694 #define JO_TIMEOUT_ALL (JO_TIMEOUT + JO_OUT_TIMEOUT + JO_ERR_TIMEOUT)
1741 #ifdef FEAT_TERMINAL 1742 #ifdef FEAT_TERMINAL
1742 /* when non-zero run the job in a terminal window of this size */ 1743 /* when non-zero run the job in a terminal window of this size */
1743 int jo_term_rows; 1744 int jo_term_rows;
1744 int jo_term_cols; 1745 int jo_term_cols;
1745 char_u *jo_term_name; 1746 char_u *jo_term_name;
1747 int jo_term_finish;
1746 #endif 1748 #endif
1747 } jobopt_T; 1749 } jobopt_T;
1748 1750
1749 1751
1750 /* structure used for explicit stack while garbage collecting hash tables */ 1752 /* structure used for explicit stack while garbage collecting hash tables */