summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-12 14:32:32 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-12 14:32:32 +0200
commit8cad930a259a05a95c7d0c527a5881d5f9a59057 (patch)
treeaf7a71218529720c763171e928b826a140e6d9c1 /src/channel.c
parentb81bc77ae7e43b5aac43970aaa4aa70c619e5009 (diff)
patch 8.0.0912: cannot run a job in a hidden terminalv8.0.0912
Problem: Cannot run a job in a hidden terminal. Solution: Add option "hidden" and ++hidden.
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index 9476276ac3..22d908326f 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -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)
{