R4.1: icon-button rows in menus (component 1b8d678); three rounds used, last fixes tested
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
0c9e2b0cea
commit
962f274cc6
4 files changed
+18
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
FAIL
|
||||
|
||||
1. ../Ely-GPUI-Components/src/menus/draw.rs:181 — A pointer move after an icon button closes the menu can crash the application. Click Paste, then move the pointer over that button before the next repaint. `Open::close` has emptied `levels`, but the old mouse-move handler treats the missing level as a different selection and calls `mark`, which indexes `levels[0]` at menu.rs:157. The runtime probe reproduced an index-out-of-bounds panic with two consecutive window events and no intervening paint. Ignore events whose menu level no longer exists, as ordinary menu rows already do, and add this event-order regression.
|
||||
|
||||
2. ../Ely-GPUI-Components/src/menus/menu.rs:38 — The round-one selection-invalidation fix still executes another command when a removed button has a successor. In a Cut / Paste / Delete row, highlight Paste, then remove Paste while the menu stays open. Delete shifts into the same column, passes `runs`, and Enter executes Delete without the user selecting it; the runtime probe recorded `["delete"]`. Validate the highlighted command's identity, or clear the mark when the row's membership changes, and require explicit navigation before executing again. Add a regression for removing a middle button; the committed test only truncates the row.
|
||||
Reference in new issue
Block a user