Skip to content

Commit d3ebbb3

Browse files
repl: improve continuation prompt for incomplete expressions
Previously, when users entered an incomplete expression in the REPL, the continuation prompt was just 10 blank spaces, which looked invisible and gave the impression that the REPL had stalled. This change updates the prompt to " > ", aligning it visually with 'nix-repl> ' and clearly indicating that the REPL is waiting for more input. Fixes: #12702
1 parent 6fe3956 commit d3ebbb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcmd/repl-interacter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static constexpr const char * promptForType(ReplPromptType promptType)
135135
case ReplPromptType::ReplPrompt:
136136
return "nix-repl> ";
137137
case ReplPromptType::ContinuationPrompt:
138-
return " ";
138+
return " > "; // 9 spaces + >
139139
}
140140
assert(false);
141141
}

0 commit comments

Comments
 (0)