]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fminibuffer_complete_word): Fix a bug of refering
authorKenichi Handa <handa@m17n.org>
Mon, 12 Jan 1998 05:49:45 +0000 (05:49 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 12 Jan 1998 05:49:45 +0000 (05:49 +0000)
`i'.  We must refer `i_byte' instead.

src/minibuf.c

index 8d35b73de6fb0e07b9b91c2d4061fb744ee3fea6..d55216cafd4ffe3b4e51690f4b72656cd4068df3 100644 (file)
@@ -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. */