forked from 1b-agent/opencadstudio-upstream
fix(ribbon): light the button for prefixed commands too; drop PR screenshots
_LINE / .LINE reached show_command with the prefix and matched nothing; strip it the way the Start-tab gate already does. The before/after screenshots only illustrate the PR and stay on its branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
420c12cc15
commit
88d6a5ec08
7 files changed
+2
-1
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB |
@@ -230,7 +230,8 @@ impl OpenCADStudio {
|
|||||||
// started (typed, alias, shortcut, Repeat), so the user sees where it
|
// started (typed, alias, shortcut, Repeat), so the user sees where it
|
||||||
// lives. A transparent command returned above and leaves the running
|
// lives. A transparent command returned above and leaves the running
|
||||||
// command's highlight alone.
|
// command's highlight alone.
|
||||||
self.ribbon.show_command(cmd);
|
self.ribbon
|
||||||
|
.show_command(strip_command_prefixes(cmd).unwrap_or(cmd));
|
||||||
|
|
||||||
if !self.suppress_plugin_dispatch && crate::plugin::try_dispatch(self, i, cmd) {
|
if !self.suppress_plugin_dispatch && crate::plugin::try_dispatch(self, i, cmd) {
|
||||||
// try_dispatch returns true for both finished commands and interactive
|
// try_dispatch returns true for both finished commands and interactive
|
||||||
|
|||||||
Reference in new issue
Block a user