fixed oob in command palette command processor

This commit is contained in:
Felix Angell 2018-08-09 22:25:56 +01:00
parent 877e627dcd
commit 1633194c22

View File

@ -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:]