Commit 662b4cfc authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.

parent 4d55e513
2007-05-22 Martin Rudalics <rudalics@gmx.at>
* syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
2007-05-21 Chong Yidong <cyd@stupidchicken.com>
 
* image.c (uncache_image): New function.
......
......@@ -1276,19 +1276,19 @@ scan_words (from, count)
position of it. */
while (1)
{
int temp_byte;
if (from == beg)
break;
temp_byte = dec_bytepos (from_byte);
DEC_BOTH (from, from_byte);
UPDATE_SYNTAX_TABLE_BACKWARD (from);
ch0 = FETCH_CHAR (temp_byte);
ch0 = FETCH_CHAR (from_byte);
code = SYNTAX (ch0);
if (!(words_include_escapes
&& (code == Sescape || code == Scharquote)))
if (code != Sword || WORD_BOUNDARY_P (ch0, ch1))
break;
DEC_BOTH (from, from_byte);
{
INC_BOTH (from, from_byte);
break;
}
ch1 = ch0;
}
count++;
......
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