From 7e982ebb3aaa0cefee940e16ed289c51961db339 Mon Sep 17 00:00:00 2001 From: Noboru Saito Date: Thu, 19 Oct 2023 10:01:22 +0900 Subject: [PATCH] Fix when there are not enough columns There was an error in checking the number of columns. --- oviewer/draw.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oviewer/draw.go b/oviewer/draw.go index 38003c75..2ec2ff9c 100644 --- a/oviewer/draw.go +++ b/oviewer/draw.go @@ -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:] }