mirror of
https://github.com/openai/codex.git
synced 2026-10-25 18:28:38 +00:00
Update `tui/src/bottom_pane/textarea.rs` so `Esc` in Vim insert mode moves the cursor to the previous atomic boundary before switching to normal mode. This matches Vim behavior at end-of-line and avoids leaving the cursor on a virtual trailing cell. Add regression coverage in `tui/src/bottom_pane/textarea.rs` and `tui/src/bottom_pane/chat_composer.rs`, plus a `vim_escape_cursor_position` snapshot to lock rendered cursor placement after `Esc`.