Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/abbrev.c Mon Aug 13 11:01:58 2007 +0200 +++ b/src/abbrev.c Mon Aug 13 11:03:08 2007 +0200 @@ -222,11 +222,10 @@ because of consistency with abbrev_match. */ if (wordend < point) return 0; + if (wordend <= wordstart) + return 0; } - if (wordend <= wordstart) - return 0; - p = word = (Bufbyte *) alloca (MAX_EMCHAR_LEN * (wordend - wordstart)); for (idx = wordstart; idx < wordend; idx++) {