comparison src/eval.c @ 13575:4df23d9bad47 v8.0.1660

patch 8.0.1660: the terminal API "drop" command doesn't support options commit https://github.com/vim/vim/commit/333b80acf3a44e462456e6d5730e47ffa449c83d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 4 22:57:29 2018 +0200 patch 8.0.1660: the terminal API "drop" command doesn't support options Problem: The terminal API "drop" command doesn't support options. Solution: Implement the options.
author Christian Brabandt <cb@256bit.org>
date Wed, 04 Apr 2018 23:00:07 +0200
parents 69517d67421f
children e76499e85744
comparison
equal deleted inserted replaced
13574:73c69063091f 13575:4df23d9bad47
6588 6588
6589 if (eap->read_edit) 6589 if (eap->read_edit)
6590 len += 7; 6590 len += 7;
6591 6591
6592 if (eap->force_ff != 0) 6592 if (eap->force_ff != 0)
6593 len += (unsigned)STRLEN(eap->cmd + eap->force_ff) + 6; 6593 len += 10; /* " ++ff=unix" */
6594 # ifdef FEAT_MBYTE 6594 # ifdef FEAT_MBYTE
6595 if (eap->force_enc != 0) 6595 if (eap->force_enc != 0)
6596 len += (unsigned)STRLEN(eap->cmd + eap->force_enc) + 7; 6596 len += (unsigned)STRLEN(eap->cmd + eap->force_enc) + 7;
6597 if (eap->bad_char != 0) 6597 if (eap->bad_char != 0)
6598 len += 7 + 4; /* " ++bad=" + "keep" or "drop" */ 6598 len += 7 + 4; /* " ++bad=" + "keep" or "drop" */
6612 if (eap->read_edit) 6612 if (eap->read_edit)
6613 STRCAT(newval, " ++edit"); 6613 STRCAT(newval, " ++edit");
6614 6614
6615 if (eap->force_ff != 0) 6615 if (eap->force_ff != 0)
6616 sprintf((char *)newval + STRLEN(newval), " ++ff=%s", 6616 sprintf((char *)newval + STRLEN(newval), " ++ff=%s",
6617 eap->cmd + eap->force_ff); 6617 eap->force_ff == 'u' ? "unix"
6618 : eap->force_ff == 'd' ? "dos"
6619 : "mac");
6618 #ifdef FEAT_MBYTE 6620 #ifdef FEAT_MBYTE
6619 if (eap->force_enc != 0) 6621 if (eap->force_enc != 0)
6620 sprintf((char *)newval + STRLEN(newval), " ++enc=%s", 6622 sprintf((char *)newval + STRLEN(newval), " ++enc=%s",
6621 eap->cmd + eap->force_enc); 6623 eap->cmd + eap->force_enc);
6622 if (eap->bad_char == BAD_KEEP) 6624 if (eap->bad_char == BAD_KEEP)