mirror of
https://github.com/felixangell/phi.git
synced 2024-10-05 20:27:17 +03:00
fixed oob in command palette command processor
This commit is contained in:
parent
877e627dcd
commit
1633194c22
@ -146,6 +146,12 @@ func (b *CommandPalette) processCommand() {
|
||||
// command
|
||||
if strings.Compare(tokenizedLine[0], "!") == 0 {
|
||||
|
||||
// no commands to process, just the
|
||||
// bang.
|
||||
if len(tokenizedLine) == 1 {
|
||||
return
|
||||
}
|
||||
|
||||
// slice off the command token
|
||||
tokenizedLine := strings.Split(input, " ")[1:]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user