summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-11 22:27:50 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-11 22:27:50 +0200
commitda43b61dddcf81439a6f1716956a4e8d9046e68f (patch)
treec7433cdf21bc7e992efb60e5fda531140df395c6 /src/channel.c
parent8ed54007399f968aab447ae6cb46623b1bdbc75e (diff)
downloadvim-git-8.0.0910.tar.gz
patch 8.0.0910: cannot create a terminal in the current windowv8.0.0910
Problem: Cannot create a terminal in the current window. Solution: Add option "curwin" and ++curwin.
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 58b0b0c9a..9476276ac 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -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)
{