diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-04 22:57:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-04 22:57:29 +0200 |
commit | 333b80acf3a44e462456e6d5730e47ffa449c83d (patch) | |
tree | 24070cc76ef5b978aabc38db366e04e0dbed591d /src/eval.c | |
parent | 1f8495cf48888ff3a8ab3d0eb22db92389191a60 (diff) |
patch 8.0.1660: the terminal API "drop" command doesn't support optionsv8.0.1660
Problem: The terminal API "drop" command doesn't support options.
Solution: Implement the options.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index 2da56a47af..c965d64f2d 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6590,7 +6590,7 @@ set_cmdarg(exarg_T *eap, char_u *oldarg) len += 7; if (eap->force_ff != 0) - len += (unsigned)STRLEN(eap->cmd + eap->force_ff) + 6; + len += 10; /* " ++ff=unix" */ # ifdef FEAT_MBYTE if (eap->force_enc != 0) len += (unsigned)STRLEN(eap->cmd + eap->force_enc) + 7; @@ -6614,7 +6614,9 @@ set_cmdarg(exarg_T *eap, char_u *oldarg) if (eap->force_ff != 0) sprintf((char *)newval + STRLEN(newval), " ++ff=%s", - eap->cmd + eap->force_ff); + eap->force_ff == 'u' ? "unix" + : eap->force_ff == 'd' ? "dos" + : "mac"); #ifdef FEAT_MBYTE if (eap->force_enc != 0) sprintf((char *)newval + STRLEN(newval), " ++enc=%s", |