From 0bf354b72ead06db1d4011ec6f9f82b4d616c739 Mon Sep 17 00:00:00 2001 From: Noboru Saito Date: Sat, 6 Jan 2024 15:57:08 +0900 Subject: [PATCH] Fixed cursor width in column mode Fixed special treatment to start 0 only. --- oviewer/draw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oviewer/draw.go b/oviewer/draw.go index b2fa0846..6c242d49 100644 --- a/oviewer/draw.go +++ b/oviewer/draw.go @@ -383,7 +383,7 @@ func (root *Root) columnDelimiterHighlight(line LineC) { var iStart, iEnd int for c := 0; c < len(indexes)+1; c++ { switch { - case c == 0: + case c == 0 && lStart == 0: iStart = lStart iEnd = indexes[0][1] - 1 if iEnd < 0 {