1
0
forked from aniani/vim

patch 8.0.0912: cannot run a job in a hidden terminal

Problem:    Cannot run a job in a hidden terminal.
Solution:   Add option "hidden" and ++hidden.
This commit is contained in:
Bram Moolenaar
2017-08-12 14:32:32 +02:00
parent b81bc77ae7
commit 8cad930a25
7 changed files with 103 additions and 18 deletions

View File

@@ -4462,6 +4462,13 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
opt->jo_set |= JO2_CURWIN;
opt->jo_curwin = get_tv_number(item);
}
else if (STRCMP(hi->hi_key, "hidden") == 0)
{
if (!(supported2 & JO2_HIDDEN))
break;
opt->jo_set |= JO2_HIDDEN;
opt->jo_hidden = get_tv_number(item);
}
#endif
else if (STRCMP(hi->hi_key, "env") == 0)
{