forked from lix-project/lix
Merge branch 'repl' of https://github.com/NinjaTrappeur/nix
This commit is contained in:
commit
d5c9315d84
|
@ -189,6 +189,7 @@ bool NixRepl::getLine(string & input, const std::string &prompt)
|
||||||
if (!s) {
|
if (!s) {
|
||||||
switch (auto type = linenoiseKeyType()) {
|
switch (auto type = linenoiseKeyType()) {
|
||||||
case 1: // ctrl-C
|
case 1: // ctrl-C
|
||||||
|
input = "";
|
||||||
return true;
|
return true;
|
||||||
case 2: // ctrl-D
|
case 2: // ctrl-D
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue