Skip to content

Commit fdd3976

Browse files
committed
fix(tui): rename palette variable to command
1 parent 593de54 commit fdd3976

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/tui/tui.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
130130
if key.Matches(msg, m.keys.Quit) {
131131
return m, tea.Quit
132132
} else if key.Matches(msg, m.keys.Command) {
133-
palette := NewCommand(m.rootSlide)
134-
palette = palette.SetShowing(true)
135-
m.command = &palette
133+
command := NewCommand(m.rootSlide)
134+
command = command.SetShowing(true)
135+
m.command = &command
136+
return m, nil
136137
return m, nil
137138
} else if key.Matches(msg, m.keys.Next) {
138139
if m.slide.Next == nil || m.slide.ActiveTransition != nil && m.slide.ActiveTransition.Animating() {

0 commit comments

Comments
 (0)