Skip to content

Commit 88e43fa

Browse files
authored
Remove pipes from multi-line REPL prompts (#24307)
This makes it easier to copy-paste-autoformat REPL snippets when transferring them into your IDE for usage in Scala files
1 parent 9e26ce6 commit 88e43fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repl/src/dotty/tools/repl/JLineTerminal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class JLineTerminal extends java.io.Closeable {
3838
else str
3939
protected def promptStr = "scala"
4040
private def prompt(using Context) = blue(s"\n$promptStr> ")
41-
private def newLinePrompt(using Context) = blue(" | ")
41+
private def newLinePrompt(using Context) = " "
4242

4343
/** Blockingly read line from `System.in`
4444
*

0 commit comments

Comments
 (0)