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