diff options
| author | adamdottv <[email protected]> | 2025-06-18 14:06:20 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-18 14:06:20 -0500 |
| commit | 1d0bfc2b2ac2bad3a646c6adf43aa112d47c3f07 (patch) | |
| tree | 4bde15459d6da76e9c8fad3a85a29503e115e116 /packages/tui/internal/components | |
| parent | bd46cf0f868293b501874c1f04632ced3bec7b81 (diff) | |
| download | opencode-1d0bfc2b2ac2bad3a646c6adf43aa112d47c3f07.tar.gz opencode-1d0bfc2b2ac2bad3a646c6adf43aa112d47c3f07.zip | |
fix(tui): help dialog sorting
Diffstat (limited to 'packages/tui/internal/components')
| -rw-r--r-- | packages/tui/internal/components/dialog/help.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/tui/internal/components/dialog/help.go b/packages/tui/internal/components/dialog/help.go index 1886714e4..6041fd5e7 100644 --- a/packages/tui/internal/components/dialog/help.go +++ b/packages/tui/internal/components/dialog/help.go @@ -15,7 +15,7 @@ type helpDialog struct { width int height int modal *modal.Modal - commands commands.CommandRegistry + commands []commands.Command } func (h *helpDialog) Init() tea.Cmd { @@ -80,7 +80,7 @@ type HelpDialog interface { layout.Modal } -func NewHelpDialog(commands commands.CommandRegistry) HelpDialog { +func NewHelpDialog(commands []commands.Command) HelpDialog { return &helpDialog{ commands: commands, modal: modal.New(), |
