aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-02-23 14:17:11 +0000
committerJim Blandy1993-02-23 14:17:11 +0000
commit2471a2815be559b063401028203f08b2b365979b (patch)
treefd608c88d25f1e9670e2af34b8279ece775c464c /src
parent8dd926cab5c4c49944d0a3d8c8e65498dd84e879 (diff)
downloademacs-2471a2815be559b063401028203f08b2b365979b.tar.gz
emacs-2471a2815be559b063401028203f08b2b365979b.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/abbrev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index f56054bda51..c9ea673e696 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -257,7 +257,7 @@ Returns t if expansion took place.")
257 257
258 p = buffer = (char *) alloca (wordend - wordstart); 258 p = buffer = (char *) alloca (wordend - wordstart);
259 259
260 for (idx = wordstart; idx < point; idx++) 260 for (idx = wordstart; idx < wordend; idx++)
261 { 261 {
262 register int c = FETCH_CHAR (idx); 262 register int c = FETCH_CHAR (idx);
263 if (UPPERCASEP (c)) 263 if (UPPERCASEP (c))