nix repl: Fix multiline SIGINT handling.

Fixes #2076
This commit is contained in:
Félix Baylac-Jacqué 2018-04-16 16:09:30 +02:00
parent d34fa2bcc3
commit a91fb422fe
No known key found for this signature in database
GPG key ID: EFD315F31848DBA4

View file

@ -189,6 +189,7 @@ bool NixRepl::getLine(string & input, const std::string &prompt)
if (!s) {
switch (auto type = linenoiseKeyType()) {
case 1: // ctrl-C
input = "";
return true;
case 2: // ctrl-D
return false;