changeset 77927:d15a774f9796

(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 06 Jun 2007 17:09:40 +0000
parents 0d16f59843e9
children 1f5af1cafe75
files src/syntax.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c	Wed Jun 06 17:09:26 2007 +0000
+++ b/src/syntax.c	Wed Jun 06 17:09:40 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++;