Commit fc13f0a2 authored by Chong Yidong's avatar Chong Yidong
Browse files

(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.

parent 60fb4860
...@@ -1276,19 +1276,19 @@ scan_words (from, count) ...@@ -1276,19 +1276,19 @@ scan_words (from, count)
position of it. */ position of it. */
while (1) while (1)
{ {
int temp_byte;
if (from == beg) if (from == beg)
break; break;
temp_byte = dec_bytepos (from_byte); DEC_BOTH (from, from_byte);
UPDATE_SYNTAX_TABLE_BACKWARD (from); UPDATE_SYNTAX_TABLE_BACKWARD (from);
ch0 = FETCH_CHAR (temp_byte); ch0 = FETCH_CHAR (from_byte);
code = SYNTAX (ch0); code = SYNTAX (ch0);
if (!(words_include_escapes if (!(words_include_escapes
&& (code == Sescape || code == Scharquote))) && (code == Sescape || code == Scharquote)))
if (code != Sword || WORD_BOUNDARY_P (ch0, ch1)) if (code != Sword || WORD_BOUNDARY_P (ch0, ch1))
break; {
DEC_BOTH (from, from_byte); INC_BOTH (from, from_byte);
break;
}
ch1 = ch0; ch1 = ch0;
} }
count++; 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