changeset 20640:3305df803f6e

(Fminibuffer_complete_word): Fix a bug of refering `i'. We must refer `i_byte' instead.
author Kenichi Handa <handa@m17n.org>
date Mon, 12 Jan 1998 05:49:45 +0000
parents 12240a9b3679
children a48d24f8726c
files src/minibuf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Mon Jan 12 05:49:45 1998 +0000
+++ b/src/minibuf.c	Mon Jan 12 05:49:45 1998 +0000
@@ -1654,7 +1654,7 @@
     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. */