Skip to content

Commit 225b72c

Browse files
authored
feat: always center selected item in selection dialogs (resolves #10209) (#10207)
1 parent 8105f18 commit 225b72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
144144
let next = store.selected + direction
145145
if (next < 0) next = flat().length - 1
146146
if (next >= flat().length) next = 0
147-
moveTo(next)
147+
moveTo(next, true)
148148
}
149149

150150
function moveTo(next: number, center = false) {

0 commit comments

Comments
 (0)