summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 049e2e7c3..7c784b35d 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -440,7 +440,7 @@ term_start(
buf_T *old_curbuf = NULL;
int res;
buf_T *newbuf;
- int vertical = opt->jo_vertical || (cmdmod.split & WSP_VERT);
+ int vertical = opt->jo_vertical || (cmdmod.cmod_split & WSP_VERT);
jobopt_T orig_opt; // only partly filled
if (check_restricted() || check_secure())
@@ -529,7 +529,7 @@ term_start(
}
if (vertical)
- cmdmod.split |= WSP_VERT;
+ cmdmod.cmod_split |= WSP_VERT;
ex_splitview(&split_ea);
if (curwin == old_curwin)
{
@@ -1592,7 +1592,8 @@ term_try_stop_job(buf_T *buf)
char *how = (char *)buf->b_term->tl_kill;
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
- if ((how == NULL || *how == NUL) && (p_confirm || cmdmod.confirm))
+ if ((how == NULL || *how == NUL)
+ && (p_confirm || (cmdmod.cmod_flags & CMOD_CONFIRM)))
{
char_u buff[DIALOG_MSG_SIZE];
int ret;