changeset 22038:bc29c7cef66a

(Fall_completions, Ftry_completion): Compare char sizes, not STRING_BYTES.
author Richard M. Stallman <rms@gnu.org>
date Tue, 12 May 1998 20:15:27 +0000
parents cb95bfcd442a
children c33bec4d9e67
files src/minibuf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Tue May 12 19:44:17 1998 +0000
+++ b/src/minibuf.c	Tue May 12 20:15:27 1998 +0000
@@ -968,7 +968,7 @@
       /* Is this element a possible completion? */
 
       if (STRINGP (eltstring)
-	  && STRING_BYTES (XSTRING (string)) <= STRING_BYTES (XSTRING (eltstring))
+	  && XSTRING (string)->size <= XSTRING (eltstring)->size
 	  && (tem = Fcompare_strings (eltstring, make_number (0),
 				      make_number (XSTRING (string)->size),
 				      string, make_number (0), Qnil,
@@ -1216,7 +1216,7 @@
       /* Is this element a possible completion? */
 
       if (STRINGP (eltstring)
-	  && STRING_BYTES (XSTRING (string)) <= STRING_BYTES (XSTRING (eltstring))
+	  && XSTRING (string)->size <= XSTRING (eltstring)->size
 	  /* If HIDE_SPACES, reject alternatives that start with space
 	     unless the input starts with space.  */
 	  && ((STRING_BYTES (XSTRING (string)) > 0