diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-03-09 22:05:50 -0800 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-03-11 01:04:52 -0700 |
commit | 1758a6ef25cb74090642dd5e7a384d210041875e (patch) | |
tree | 36676245c2222e82a3bcbb3778ce13d593321c10 /src/libcmd/repl.cc | |
parent | 95a87f2c2ace3875f4c0bd4709bf062fb35ac81b (diff) |
refactor: repl prompts are now the job of the interacter
Change-Id: I17c2873dfbbff303cdbdc7a8903deb8409ce3026
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r-- | src/libcmd/repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 243324c61..5809ab285 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -196,7 +196,7 @@ ReplExitStatus NixRepl::mainLoop() logger->pause(); // When continuing input from previous lines, don't print a prompt, just align to the same // number of chars as the prompt. - if (!interacter->getLine(input, input.empty() ? "nix-repl> " : " ")) { + if (!interacter->getLine(input, input.empty() ? ReplPromptType::ReplPrompt : ReplPromptType::ContinuationPrompt)) { // Ctrl-D should exit the debugger. state->debugStop = false; logger->cout(""); |