comparison src/ex_docmd.c @ 13581:82390bf72374 v8.0.1663

patch 8.0.1663: cannot build without multi-byte feature commit https://github.com/vim/vim/commit/86676c949fcec939441620bc747851e315e2702a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 5 18:56:48 2018 +0200 patch 8.0.1663: cannot build without multi-byte feature Problem: Cannot build without multi-byte feature. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Thu, 05 Apr 2018 19:00:09 +0200
parents 4df23d9bad47
children 0e9b2971d7c3
comparison
equal deleted inserted replaced
13580:f3ef984f6e70 13581:82390bf72374
5306 MB_PTR_ADV(p); 5306 MB_PTR_ADV(p);
5307 } 5307 }
5308 return p; 5308 return p;
5309 } 5309 }
5310 5310
5311 #if defined(FEAT_MBYTE) || defined(PROTO)
5311 int 5312 int
5312 get_bad_opt(char_u *p, exarg_T *eap) 5313 get_bad_opt(char_u *p, exarg_T *eap)
5313 { 5314 {
5314 if (STRICMP(p, "keep") == 0) 5315 if (STRICMP(p, "keep") == 0)
5315 eap->bad_char = BAD_KEEP; 5316 eap->bad_char = BAD_KEEP;
5317 eap->bad_char = BAD_DROP; 5318 eap->bad_char = BAD_DROP;
5318 else if (MB_BYTE2LEN(*p) == 1 && p[1] == NUL) 5319 else if (MB_BYTE2LEN(*p) == 1 && p[1] == NUL)
5319 eap->bad_char = *p; 5320 eap->bad_char = *p;
5320 return FAIL; 5321 return FAIL;
5321 } 5322 }
5323 #endif
5322 5324
5323 /* 5325 /*
5324 * Get "++opt=arg" argument. 5326 * Get "++opt=arg" argument.
5325 * Return FAIL or OK. 5327 * Return FAIL or OK.
5326 */ 5328 */