aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-01-12 05:49:45 +0000
committerKenichi Handa1998-01-12 05:49:45 +0000
commit21846016a40d21f50441db804cc7b814e851ba67 (patch)
tree311444b9e37e30ef352ec91690faf57e6b182adb /src
parent470730a82246661e53cd3f2b8730bbc1f74c7419 (diff)
downloademacs-21846016a40d21f50441db804cc7b814e851ba67.tar.gz
emacs-21846016a40d21f50441db804cc7b814e851ba67.zip
(Fminibuffer_complete_word): Fix a bug of refering
`i'. We must refer `i_byte' instead.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c2
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.")
1654 buffer_nbytes = XSTRING (tem)->size_byte; /* ie ZV_BYTE - BEGV_BYTE */ 1654 buffer_nbytes = XSTRING (tem)->size_byte; /* ie ZV_BYTE - BEGV_BYTE */
1655 completion_nbytes = XSTRING (completion)->size_byte; 1655 completion_nbytes = XSTRING (completion)->size_byte;
1656 i_byte = buffer_nbytes - completion_nbytes; 1656 i_byte = buffer_nbytes - completion_nbytes;
1657 if (i > 0 || 1657 if (i_byte > 0 ||
1658 0 <= scmp (buffer_string, completion_string, buffer_nbytes)) 1658 0 <= scmp (buffer_string, completion_string, buffer_nbytes))
1659 { 1659 {
1660 /* Set buffer to longest match of buffer tail and completion head. */ 1660 /* Set buffer to longest match of buffer tail and completion head. */