changeset 1944:687179cefbe0

* 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.
author Jim Blandy <jimb@redhat.com>
date Tue, 23 Feb 1993 14:17:11 +0000
parents 80482f2d54bf
children b07c27b4dca7
files src/abbrev.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))