mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 13:17:23 +00:00
Bugfix: extra junk after +/- commands cause crash #20
This commit is contained in:
1
main.go
1
main.go
@ -649,6 +649,7 @@ func handleInput(viewName string) error {
|
|||||||
}
|
}
|
||||||
if inputString[:1] == "+" || inputString[:1] == "-" {
|
if inputString[:1] == "+" || inputString[:1] == "-" {
|
||||||
cmd := strings.Split(inputString, " ")
|
cmd := strings.Split(inputString, " ")
|
||||||
|
cmd[0] = inputString[:1]
|
||||||
RunCommand(cmd...)
|
RunCommand(cmd...)
|
||||||
} else {
|
} else {
|
||||||
go sendChat(inputString)
|
go sendChat(inputString)
|
||||||
|
|||||||
Reference in New Issue
Block a user