comparison src/eval.c @ 7014:962b3ae252a9 v7.4.824

patch 7.4.824 Problem: Can't compile without the multi-byte feature. (John Marriott) Solution: Add #ifdef.
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Aug 2015 22:56:58 +0200
parents 286fd54c7ae3
children db0328a2fa2a
comparison
equal deleted inserted replaced
7013:349e6c01f35d 7014:962b3ae252a9
17044 if ((d = argvars[0].vval.v_dict) != NULL) 17044 if ((d = argvars[0].vval.v_dict) != NULL)
17045 { 17045 {
17046 csearch = get_dict_string(d, (char_u *)"char", FALSE); 17046 csearch = get_dict_string(d, (char_u *)"char", FALSE);
17047 if (csearch != NULL) 17047 if (csearch != NULL)
17048 { 17048 {
17049 #ifdef FEAT_MBYTE
17049 if (enc_utf8) 17050 if (enc_utf8)
17050 { 17051 {
17051 int pcc[MAX_MCO]; 17052 int pcc[MAX_MCO];
17052 int c = utfc_ptr2char(csearch, pcc); 17053 int c = utfc_ptr2char(csearch, pcc);
17054
17053 set_last_csearch(c, csearch, utfc_ptr2len(csearch)); 17055 set_last_csearch(c, csearch, utfc_ptr2len(csearch));
17054 } 17056 }
17055 else 17057 else
17058 #endif
17056 set_last_csearch(mb_ptr2char(csearch), 17059 set_last_csearch(mb_ptr2char(csearch),
17057 csearch, mb_ptr2len(csearch)); 17060 csearch, mb_ptr2len(csearch));
17058 } 17061 }
17059 17062
17060 di = dict_find(d, (char_u *)"forward", -1); 17063 di = dict_find(d, (char_u *)"forward", -1);