Skip to content

Commit

Permalink
Fix column delimiter highlighting and update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Feb 17, 2024
1 parent a2ea534 commit 1ce19f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion oviewer/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func (root *Root) columnDelimiterHighlight(line LineC) {
switch {
case c == 0 && lStart == 0:
iStart = lStart
iEnd = indexes[0][1] - 1
iEnd = indexes[0][1] - len(m.ColumnDelimiter)
if iEnd < 0 {
iEnd = 0
}
Expand Down
4 changes: 2 additions & 2 deletions oviewer/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ func Test_allIndex(t *testing.T) {
reg: nil,
},
want: [][]int{
{1, 2},
{5, 6},
{1, 4},
{5, 8},
},
},
{
Expand Down

0 comments on commit 1ce19f2

Please sign in to comment.