File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
compiler/src/dotty/tools/repl Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,9 @@ private[repl] class Rendering(parentClassLoader: Option[ClassLoader] = None):
90
90
/** Used to elide long output in replStringOf via `-Vrepl-max-print-characters` */
91
91
private [repl] def truncate (str : String )(using ctx : Context ): String =
92
92
val maxPrintCharacters = ctx.settings.VreplMaxPrintCharacters .valueIn(ctx.settingsState)
93
- val showTruncated = " ... large output truncated, print value to show all"
94
93
val ncp = str.codePointCount(0 , str.length) // to not cut inside code point
95
94
if ncp <= maxPrintCharacters then str
96
- else str.substring(0 , str.offsetByCodePoints(0 , maxPrintCharacters - 1 )) + showTruncated
95
+ else str.substring(0 , str.offsetByCodePoints(0 , maxPrintCharacters - 1 )) + infoOutputGotTruncated
97
96
98
97
/** Return a String representation of a value we got from `classLoader()`. */
99
98
private [repl] def replStringOf (value : Object )(using Context ): String =
You can’t perform that action at this time.
0 commit comments