Commentary

This commit is contained in:
Florian Schroedl
2022-06-18 12:20:21 +02:00
parent dd84dc5d6e
commit 788c2b4d2d

View File

@@ -407,7 +407,9 @@ func highlightStreamPosition2(stream: string, position: int): string =
let beforeNewline =
case (startIndex, ch):
# Always print newline for newline at the stream begin
of (-1, '\n'): "\n"
# Don't insert a newline when the character is a newline between newlines
of (_, '\n'): ""
else: "\n"