comparison src/abbrev.c @ 359:8e84bee8ddd0 r21-1-9

Import from CVS: tag r21-1-9
author cvs
date Mon, 13 Aug 2007 10:57:55 +0200
parents 7df0dd720c89
children cc15677e0335
comparison
equal deleted inserted replaced
358:fed6e0f6a03a 359:8e84bee8ddd0
220 /* Unlike the original function, we allow expansion only after 220 /* Unlike the original function, we allow expansion only after
221 the abbrev, not preceded by a number of spaces. This is 221 the abbrev, not preceded by a number of spaces. This is
222 because of consistency with abbrev_match. */ 222 because of consistency with abbrev_match. */
223 if (wordend < point) 223 if (wordend < point)
224 return 0; 224 return 0;
225 if (wordend <= wordstart) 225 }
226 return 0; 226
227 } 227 if (wordend <= wordstart)
228 return 0;
228 229
229 p = word = (Bufbyte *) alloca (MAX_EMCHAR_LEN * (wordend - wordstart)); 230 p = word = (Bufbyte *) alloca (MAX_EMCHAR_LEN * (wordend - wordstart));
230 for (idx = wordstart; idx < wordend; idx++) 231 for (idx = wordstart; idx < wordend; idx++)
231 { 232 {
232 Emchar c = BUF_FETCH_CHAR (buf, idx); 233 Emchar c = BUF_FETCH_CHAR (buf, idx);