From 80667e30fbd3feb95a0af4bca0f512694a438bde Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 2 Feb 2008 18:35:55 +0000 Subject: msh: fix Ctrl-C handling with line editing --- libbb/lineedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbb') diff --git a/libbb/lineedit.c b/libbb/lineedit.c index d3ee7386e..c191b0572 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -1315,8 +1315,8 @@ static void win_changed(int nsig) #define CTRL(a) ((a) & ~0x40) /* Returns: - * -1 on read errors or EOF, or on bare Ctrl-D. - * 0 on ctrl-C, + * -1 on read errors or EOF, or on bare Ctrl-D, + * 0 on ctrl-C (the line entered is still returned in 'command'), * >0 length of input string, including terminating '\n' */ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t *st) -- cgit v1.2.3-55-g6feb