Skip to content

Commit

Permalink
Merge pull request #455 from noborus/fix-columns-crash
Browse files Browse the repository at this point in the history
Fix when there are not enough columns
  • Loading branch information
noborus authored Oct 19, 2023
2 parents 1a46b7d + 7e982eb commit 609ff63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oviewer/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ func (root *Root) columnDelimiterHighlight(line LineC) {

lStart := 0
if indexes[0][0] == 0 {
if len(indexes) == 1 {
return
}
lStart = indexes[0][1]
indexes = indexes[1:]
}
Expand Down

0 comments on commit 609ff63

Please sign in to comment.