Mercurial > vim
diff src/channel.c @ 12060:a879814b8a37 v8.0.0910
patch 8.0.0910: cannot create a terminal in the current window
commit https://github.com/vim/vim/commit/da43b61dddcf81439a6f1716956a4e8d9046e68f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 11 22:27:50 2017 +0200
patch 8.0.0910: cannot create a terminal in the current window
Problem: Cannot create a terminal in the current window.
Solution: Add option "curwin" and ++curwin.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Aug 2017 22:30:06 +0200 |
parents | e78fde22faec |
children | 407a475c67fd |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -4455,6 +4455,13 @@ get_job_options(typval_T *tv, jobopt_T * opt->jo_set |= JO2_VERTICAL; opt->jo_vertical = get_tv_number(item); } + else if (STRCMP(hi->hi_key, "curwin") == 0) + { + if (!(supported2 & JO2_CURWIN)) + break; + opt->jo_set |= JO2_CURWIN; + opt->jo_curwin = get_tv_number(item); + } #endif else if (STRCMP(hi->hi_key, "env") == 0) {