changeset 89051:98dcb14bf34c

(Fexpand_abbrev): Convert a unibyte character to multibyte if necessary.
author Kenichi Handa <handa@m17n.org>
date Tue, 03 Sep 2002 04:06:07 +0000
parents c00be25be9ad
children 547647cd162a
files src/abbrev.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/abbrev.c	Tue Sep 03 04:05:26 2002 +0000
+++ b/src/abbrev.c	Tue Sep 03 04:06:07 2002 +0000
@@ -295,9 +295,7 @@
 
       FETCH_CHAR_ADVANCE (c, idx, idx_byte);
       if (! multibyte)
-	{
-	  MAKE_CHAR_MULTIBYTE (c);
-	}
+	MAKE_CHAR_MULTIBYTE (c);
 
       if (UPPERCASEP (c))
 	c = DOWNCASE (c), uccount++;
@@ -384,7 +382,7 @@
 
 	  /* Find the initial.  */
 	  while (pos < PT_BYTE
-		 && SYNTAX (*BUF_BYTE_ADDRESS (current_buffer, pos)) != Sword)
+		 && SYNTAX (FETCH_CHAR_AS_MULTIBYTE (pos)) != Sword)
 	    pos++;
 
 	  /* Change just that.  */