Error widths now work properly

This commit is contained in:
Sasha Koshka
2022-08-18 02:04:49 -04:00
parent 85996b2554
commit a87973c141
4 changed files with 10 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ func (err Error) Error () (formattedMessage string) {
}
// print an arrow with a tail spanning the width of the mistake
for err.Width() > 1 {
for index < err.Column() + err.Width() - 1 {
if line[index] == '\t' {
formattedMessage += "--------"
} else {