diff src/syntax.c @ 81035:e294a8067c33

(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
author Kenichi Handa <handa@m17n.org>
date Tue, 22 May 2007 12:04:44 +0000
parents cbb18b4e981b
children 922696f363b0 31beec9ee600
line wrap: on
line diff
--- a/src/syntax.c	Tue May 22 11:24:50 2007 +0000
+++ b/src/syntax.c	Tue May 22 12:04:44 2007 +0000
@@ -1276,19 +1276,19 @@
          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++;