mirror of
https://github.com/NixOS/nix.git
synced 2025-04-16 06:08:03 +00:00
parent
d34fa2bcc3
commit
a91fb422fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user