fix: no cursor on the versions in a secret's details: they're read, not moved in
CI / Checks (pull_request) Successful in 25s
PR title / Conventional title (pull_request) Successful in 2s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-12 08:56:29 +02:00
1 parent cbb155b498
commit c728033436
2 files changed
+12 -7

No files matched your search

+6 -4
View File
@@ -362,11 +362,13 @@ func (d Detail) versionLines(st styles.Styles) []string {
out = append(out, muted(fmt.Sprintf(" … %d more", len(d.versions)-i)))
break
}
marker := " "
if d.secret.Version != "" && v.Version == d.secret.Version {
marker = "▸ " // the version shown above
// A list to read, not to move in (v browses them): no cursor. The
// version shown above, when it isn't the current one, is named.
line := " " + VersionLine(st, v, d.Now(), current)
if d.secret.Version != "" && v.Version == d.secret.Version && v.Version != current {
line += muted(" · shown above")
}
out = append(out, " "+marker+VersionLine(st, v, d.Now(), current))
out = append(out, line)
}
return out
}