From: Kenichi Handa Date: Mon, 12 Jan 1998 05:49:45 +0000 (+0000) Subject: (Fminibuffer_complete_word): Fix a bug of refering X-Git-Tag: emacs-20.3~2434 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=21846016a40d21f50441db804cc7b814e851ba67;p=emacs.git (Fminibuffer_complete_word): Fix a bug of refering `i'. We must refer `i_byte' instead. --- 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. */