diff options
author | Kenichi Handa <handa@m17n.org> | 1998-01-12 05:49:45 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1998-01-12 05:49:45 +0000 |
commit | 21846016a40d21f50441db804cc7b814e851ba67 (patch) | |
tree | 311444b9e37e30ef352ec91690faf57e6b182adb | |
parent | 470730a82246661e53cd3f2b8730bbc1f74c7419 (diff) | |
download | emacs-21846016a40d21f50441db804cc7b814e851ba67.tar.gz emacs-21846016a40d21f50441db804cc7b814e851ba67.tar.bz2 emacs-21846016a40d21f50441db804cc7b814e851ba67.zip |
(Fminibuffer_complete_word): Fix a bug of refering
`i'. We must refer `i_byte' instead.
-rw-r--r-- | src/minibuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 8d35b73de6f..d55216cafd4 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1654,7 +1654,7 @@ Return nil if there is no valid completion, else t.") buffer_nbytes = XSTRING (tem)->size_byte; /* ie ZV_BYTE - BEGV_BYTE */ completion_nbytes = XSTRING (completion)->size_byte; i_byte = buffer_nbytes - completion_nbytes; - if (i > 0 || + if (i_byte > 0 || 0 <= scmp (buffer_string, completion_string, buffer_nbytes)) { /* Set buffer to longest match of buffer tail and completion head. */ |