Skip to content

Commit

Permalink
instead strings.Fields
Browse files Browse the repository at this point in the history
  • Loading branch information
wjiec committed Nov 22, 2023
1 parent d8234f3 commit 03f3011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/view/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (a *App) suggestCommand() model.SuggestionFunc {
}

func (a *App) suggestSubCommand(command string) []string {
cmds := strings.Split(command, " ")
cmds := strings.Fields(command)
if len(cmds[0]) == 0 || len(cmds) != 2 {
return nil
}
Expand Down

0 comments on commit 03f3011

Please sign in to comment.