# HG changeset patch # User Jim Blandy # Date 730477031 0 # Node ID 687179cefbe076a44bfa4546da20f895166f5150 # Parent 80482f2d54bf574743a297f8c642b798a1ec122b * abbrev.c (Fexpand_abbrev): Only copy the text we're going to expand - from wordstart to wordend, not from wordstart to point - into the buffer. There might be non-word text between wordend and point. diff -r 80482f2d54bf -r 687179cefbe0 src/abbrev.c --- a/src/abbrev.c Tue Feb 23 14:14:19 1993 +0000 +++ b/src/abbrev.c Tue Feb 23 14:17:11 1993 +0000 @@ -257,7 +257,7 @@ p = buffer = (char *) alloca (wordend - wordstart); - for (idx = wordstart; idx < point; idx++) + for (idx = wordstart; idx < wordend; idx++) { register int c = FETCH_CHAR (idx); if (UPPERCASEP (c))