Skip to content

Commit 2ab77e0

Browse files
lihaoyitgodzik
authored andcommitted
Remove pipes from multi-line REPL prompts (scala#24307)
This makes it easier to copy-paste-autoformat REPL snippets when transferring them into your IDE for usage in Scala files
1 parent 7c3acdc commit 2ab77e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

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

0 commit comments

Comments
 (0)