comparison src/abbrev.c @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 8e84bee8ddd0
children 8626e4521993
comparison
equal deleted inserted replaced
370:bd866891f083 371:cc15677e0335
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 } 225 if (wordend <= wordstart)
226 226 return 0;
227 if (wordend <= wordstart) 227 }
228 return 0;
229 228
230 p = word = (Bufbyte *) alloca (MAX_EMCHAR_LEN * (wordend - wordstart)); 229 p = word = (Bufbyte *) alloca (MAX_EMCHAR_LEN * (wordend - wordstart));
231 for (idx = wordstart; idx < wordend; idx++) 230 for (idx = wordstart; idx < wordend; idx++)
232 { 231 {
233 Emchar c = BUF_FETCH_CHAR (buf, idx); 232 Emchar c = BUF_FETCH_CHAR (buf, idx);