From e858db096415ec3ffe1e5613a144355584213730 Mon Sep 17 00:00:00 2001 From: vysheng Date: Tue, 29 Oct 2013 01:57:22 +0400 Subject: [PATCH] Fix to prev commit --- interface.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface.c b/interface.c index 4e4d9b6..8a40a59 100644 --- a/interface.c +++ b/interface.c @@ -236,7 +236,10 @@ char *command_generator (const char *text, int state) { if (index == -1) { return 0; } } - if (mode == -1) { return 0; } + if (mode == -1) { + if (c) { rl_line_buffer[rl_point] = c; } + return 0; + } char *R = 0; switch (mode & 7) {