Skip to content

Commit

Permalink
Fix when there are not enough columns
Browse files Browse the repository at this point in the history
There was an error in checking the number of columns.
  • Loading branch information
noborus committed Oct 19, 2023
1 parent 2d5dca1 commit 7e982eb
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 7e982eb

Please sign in to comment.