Mercurial > vim
diff src/terminal.c @ 22699:e82579016863 v8.2.1898
patch 8.2.1898: command modifier parsing always uses global cmdmod
Commit: https://github.com/vim/vim/commit/e10044015841711b989f9a898d427bcc1fdb4c32
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 24 20:49:43 2020 +0200
patch 8.2.1898: command modifier parsing always uses global cmdmod
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Oct 2020 21:00:05 +0200 |
parents | 73688eec32ca |
children | 0b4658e030cb |
line wrap: on
line diff
--- 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;