fix: an opened link ends on the secret's details, also when its lists were loaded
A link whose vault and secrets were listed already (a repo's files, or cached) got there in one update, so the details pane described the source instead of the secret, until 3 was pressed.
This commit is contained in:
2 files changed
+19
-1
No files matched your search
@@ -643,7 +643,11 @@ func (m *Model) advanceNav() bool {
|
||||
}
|
||||
}
|
||||
if n.link {
|
||||
m.focus = paneDetail // after: copying acts on the focused pane
|
||||
// After: copying acts on the focused pane. The details describe
|
||||
// the secret: when its lists were loaded already, the open got
|
||||
// here in one update, and the Secrets pane was never the last
|
||||
// left pane in focus.
|
||||
m.lastLeft, m.focus = paneSecrets, paneDetail
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user