forked from 1b-agent/opencadstudio-upstream
fix(commands): strip _/. name prefixes only when the name as written is unknown
#1584 stripped the prefixes before dispatch, which turned the ribbon's own internal names (_PCCROPPOLY, _XREFEDIT, _PDFULSNAP, ...) into unknown commands. A name is now tried as written and retried without its prefixes only when no family handles it; the Start-tab gate judges the bare name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7df841711
commit
65347de904
3 files changed
+18
-9
No files matched your search
@@ -489,7 +489,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn autodesk_command_prefixes_strip_underscore_and_dot() {
|
||||
fn command_name_prefixes_are_stripped() {
|
||||
let mut app = fresh_app();
|
||||
let i = app.active_tab;
|
||||
let before_count = app.tabs[i].scene.document.entities().count();
|
||||
@@ -535,4 +535,3 @@ ZOOM EXTENTS
|
||||
assert_eq!(app.tabs[i].scene.document.entities().count(), 8);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user