diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-05-12 20:15:27 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-05-12 20:15:27 +0000 |
commit | 7d3159862ce14bf1f202982f7d31f1c76ba00e25 (patch) | |
tree | 2f5c56bf37c5d35674fe2f3ea314f90286866cb9 /src/minibuf.c | |
parent | 4b876894b764ab0b1b3be35e1f8e2b9c4a81e6b5 (diff) | |
download | emacs-7d3159862ce14bf1f202982f7d31f1c76ba00e25.tar.gz |
(Fall_completions, Ftry_completion): Compare char sizes, not STRING_BYTES.
Diffstat (limited to 'src/minibuf.c')
-rw-r--r-- | src/minibuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 2e89c610564..f69f06f5ec9 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -968,7 +968,7 @@ or the symbol from the obarray.") /* 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 @@ are ignored unless STRING itself starts with a space.") /* 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 |