Commit 2471a281 authored by Jim Blandy's avatar Jim Blandy
Browse files

* 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
parent 8dd926ca
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment