aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-03-11 15:12:09 -0600
committerGerrit Code Review <gerrit@lix>2024-03-11 15:12:09 -0600
commitb06a39211460033305c5264a456161c75ed88425 (patch)
tree15202d692f95b72c0884df23f3c9840618cd2ab7 /src/libcmd/repl.cc
parentdd05106d1cb94485cb6c6bd06a09b4ebbcc67435 (diff)
parent1758a6ef25cb74090642dd5e7a384d210041875e (diff)
Merge "refactor: repl prompts are now the job of the interacter" into main
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc2
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("");