mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 11:26:39 +00:00
feat(tui): focus first file in file tree (#28513)
This commit is contained in:
@@ -127,7 +127,7 @@ function DiffViewer(props: { api: TuiPluginApi }) {
|
||||
const next =
|
||||
lastHighlighted !== undefined && fileRows().some((row) => row.id === lastHighlighted)
|
||||
? lastHighlighted
|
||||
: fileRows()[0]?.id
|
||||
: fileRows().find((row) => row.fileIndex !== undefined)?.id
|
||||
setHighlightedFileNode(next)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user