Skip to content

Commit

Permalink
Merge pull request #1641 from RickBarretto/fix-error-formating
Browse files Browse the repository at this point in the history
[error] fix underline formatation for windows terminal
  • Loading branch information
drkameleon authored May 20, 2024
2 parents f9cea57 + 12349de commit c99c6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/errors.nim
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ proc printCodePreview(e: VError) =
proc printHint(e: VError) =
if e.hint != "":
let wrappingWidth = min(100, int(0.8 * float(getMaxWidth() - 2 - 6)))
let hinter = " " & "\e[4;97m" & "Hint" & resetColor() & ": "
let hinter = " " & underline() & "Hint" & resetColor() & ": "
echo ""
if e.hint.contains("\n"):
echo (hinter & "$$") ~~ @[e.hint.processPseudomarkdown()]
Expand Down

0 comments on commit c99c6bf

Please sign in to comment.