make the read builtin respect ctrl-C

This commit is contained in:
Jan Kanis
2013-01-20 23:35:41 +01:00
parent abae08a9fb
commit 970d05df39
2 changed files with 15 additions and 1 deletions

View File

@@ -2399,6 +2399,7 @@ static int builtin_read(parser_t &parser, wchar_t **argv)
}
/* No autosuggestions in builtin_read */
reader_set_allow_autosuggesting(false);
reader_set_interruptible(true);
reader_set_buffer(commandline, wcslen(commandline));
proc_push_interactive(1);