0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

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.
This commit is contained in:
Bram Moolenaar
2017-08-11 22:27:50 +02:00
parent 8ed5400739
commit da43b61ddd
7 changed files with 86 additions and 24 deletions

View File

@@ -4455,6 +4455,13 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
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)
{