Skip to content

Commit

Permalink
fix typo (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunniii authored Jul 24, 2024
1 parent 5e3ef9c commit 54ef6c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (m model) Init() tea.Cmd {
return textarea.Blink
}

func (m *model) getCommmandsList() []command {
func (m *model) getCommandsList() []command {
if m.status == hosts.FocusStatusOn {
return []command{commandFocusOff, commandConfigureBlacklist}
}
Expand All @@ -69,7 +69,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {

case tea.KeyMsg:
commands := m.getCommmandsList()
commands := m.getCommandsList()
switch msg.String() {

case "up", "k":
Expand Down
2 changes: 1 addition & 1 deletion cli/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (m model) View() string {
}

if m.state == menuView {
commands := m.getCommmandsList()
commands := m.getCommandsList()

l := list.New().Enumerator(func(items list.Items, i int) string {
if i == m.commandsListSelection {
Expand Down

0 comments on commit 54ef6c8

Please sign in to comment.