From 65ece1047d6fe183e289ef87e25ce3f57c0063fc Mon Sep 17 00:00:00 2001 From: Roy Han Date: Tue, 3 Mar 2026 11:31:45 -0800 Subject: [PATCH] small fix --- codex-rs/tui/src/bottom_pane/approval_overlay.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codex-rs/tui/src/bottom_pane/approval_overlay.rs b/codex-rs/tui/src/bottom_pane/approval_overlay.rs index 9e4705bf6b..e2e9da0f5a 100644 --- a/codex-rs/tui/src/bottom_pane/approval_overlay.rs +++ b/codex-rs/tui/src/bottom_pane/approval_overlay.rs @@ -250,8 +250,7 @@ impl ApprovalOverlay { fn patch_selected_index(&self) -> Option { self.patch_state() - .map(|_| self.list.scroll_state().selected_idx) - .flatten() + .and_then(|_| self.list.scroll_state().selected_idx) } fn patch_note_text(&self) -> String {