Skip to content

Commit

Permalink
Fixed a regression in node coloring due to wrong bugfix at 8027ca8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Macmod committed Dec 4, 2024
1 parent 5cfc108 commit 931fe29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"software.sslmate.com/src/go-pkcs12"
)

var GodapVer = "Godap v2.10.0"
var GodapVer = "Godap v2.10.1"

var (
LdapServer string
Expand Down
8 changes: 6 additions & 2 deletions tui/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,12 @@ func reloadAttributesPanel(node *tview.TreeNode, attrsTable *tview.Table, useCac

if Colors {
var refValue string
if !FormatAttrs && (!ExpandAttrs || len(cellValues) == 1) {
refValue = attribute.Values[idx]
if !ExpandAttrs || len(cellValues) == 1 {
if idx < len(attribute.Values) {
refValue = attribute.Values[idx]
} else {
refValue = cellValue
}
} else {
refValue = cellValue
}
Expand Down

0 comments on commit 931fe29

Please sign in to comment.