aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/minibuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 37b443d07d6..298aa6c8a5a 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1969,7 +1969,6 @@ Return nil if there is no valid completion, else t. */)
1969 i gets index in string of where to stop completing. */ 1969 i gets index in string of where to stop completing. */
1970 { 1970 {
1971 int len, c; 1971 int len, c;
1972 int bytes = STRING_BYTES (XSTRING (completion));
1973 completion_string = XSTRING (completion)->data; 1972 completion_string = XSTRING (completion)->data;
1974 for (; i_byte < STRING_BYTES (XSTRING (completion)); i_byte += len, i++) 1973 for (; i_byte < STRING_BYTES (XSTRING (completion)); i_byte += len, i++)
1975 { 1974 {
@@ -2214,7 +2213,7 @@ DEFUN ("self-insert-and-exit", Fself_insert_and_exit, Sself_insert_and_exit, 0,
2214 doc: /* Terminate minibuffer input. */) 2213 doc: /* Terminate minibuffer input. */)
2215 () 2214 ()
2216{ 2215{
2217 if (INTEGERP (last_command_char)) 2216 if (CHARACTERP (last_command_char))
2218 internal_self_insert (XINT (last_command_char), 0); 2217 internal_self_insert (XINT (last_command_char), 0);
2219 else 2218 else
2220 bitch_at_user (); 2219 bitch_at_user ();