summaryrefslogtreecommitdiff
path: root/src/abbrev.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-02-23 14:17:11 +0000
committerJim Blandy <jimb@redhat.com>1993-02-23 14:17:11 +0000
commit49289a379a36e55be6bb5bb72cf8254172304285 (patch)
tree429cce7e169d420be676aa5a69eca31d7b36d2bd /src/abbrev.c
parentcad8a4b2de183a57c46e72401fb9552c69df4519 (diff)
downloademacs-49289a379a36e55be6bb5bb72cf8254172304285.tar.gz
* 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/abbrev.c')
-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.")
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))