diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 9220ddeb3..45d4c33f5 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -3030,6 +3030,10 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman | |||
3030 | && ic_raw == initial_settings.c_cc[VINTR] | 3030 | && ic_raw == initial_settings.c_cc[VINTR] |
3031 | ) { | 3031 | ) { |
3032 | /* Ctrl-C (usually) - stop gathering input */ | 3032 | /* Ctrl-C (usually) - stop gathering input */ |
3033 | #if ENABLE_PLATFORM_MINGW32 | ||
3034 | if (state->flags & IGNORE_CTRL_C) | ||
3035 | break; | ||
3036 | #endif | ||
3033 | command_len = 0; | 3037 | command_len = 0; |
3034 | break_out = -1; /* "do not append '\n'" */ | 3038 | break_out = -1; /* "do not append '\n'" */ |
3035 | break; | 3039 | break; |