mirror of https://github.com/Hilbis/Hilbish
fix: panic on ctrl d on continued input
basically when a person did the continue prompt (input ending with `\`) and exited with ctrl d it caused a panic this was the simplest way to fix thatpull/61/head
parent
b3a28b067c
commit
72973eade7
2
shell.go
2
shell.go
|
@ -177,7 +177,7 @@ func splitInput(input string) ([]string, string) {
|
||||||
quoted := false
|
quoted := false
|
||||||
startlastcmd := false
|
startlastcmd := false
|
||||||
lastcmddone := false
|
lastcmddone := false
|
||||||
cmdArgs := []string{}
|
cmdArgs := []string{""}
|
||||||
sb := &strings.Builder{}
|
sb := &strings.Builder{}
|
||||||
cmdstr := &strings.Builder{}
|
cmdstr := &strings.Builder{}
|
||||||
lastcmd := "" //readline.GetHistory(readline.HistorySize() - 1)
|
lastcmd := "" //readline.GetHistory(readline.HistorySize() - 1)
|
||||||
|
|
Loading…
Reference in New Issue