chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-22 16:31:30 +00:00
parent 69e4f52272
commit b368e5adbe
2 changed files with 5 additions and 11 deletions

View File

@@ -179,11 +179,7 @@ export function orderedPatchFileIndexes(rows: readonly FileTreeRow[]) {
return rows.flatMap((row) => (row.fileIndex === undefined ? [] : [row.fileIndex]))
}
export function movePatchFileIndex(
fileIndexes: readonly number[],
current: number | undefined,
offset: number,
) {
export function movePatchFileIndex(fileIndexes: readonly number[], current: number | undefined, offset: number) {
if (fileIndexes.length === 0) return undefined
const index = current === undefined ? -1 : fileIndexes.indexOf(current)
if (index === -1) return offset < 0 ? fileIndexes[fileIndexes.length - 1] : fileIndexes[0]