Fix Ctrl+V Visual Block not entering with empty clipboard #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ctrl-v-visual-block"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Ctrl+V only entered Visual Block mode when the clipboard held text. With an empty clipboard, or with an image or files copied, it did nothing.
Cause
egui-winit treats Ctrl+V as a paste shortcut (
egui-winit-0.31.1/src/lib.rs:772-779):Event::Paste. The editor already handled this.Key::Vrelease reaches the app, and the editor ignored releases.The editor's own Ctrl+V key handler is never reached in the real app. The old test called
handle_key_press(Key::V, ctrl)directly, so it passed even though the app was broken.Fix
ui()into a newVimSqlEditor::handle_input_eventmethod that tests can call.Pasteevent.Paste).v, and paste in Insert mode.Testing
cargo testpasses (15 tests). Not yet tried in the Windows GUI.🤖 Generated with Claude Code