2
2
zrcadlo https://github.com/Hilbis/Hilbish synchronizováno 2025-07-18 16:52:02 +00:00

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 that
Tento commit je obsažen v:
sammyette 2021-06-11 17:58:35 -04:00
rodič b3a28b067c
revize 72973eade7
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 50EE40A2809851F5

Zobrazit soubor

@ -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)