2
2
鏡像自 https://github.com/Hilbis/Hilbish synced 2025-06-30 16:22:03 +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
This commit is contained in:
sammyette 2021-06-11 17:58:35 -04:00
父節點 b3a28b067c
當前提交 72973eade7
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 50EE40A2809851F5

查看文件

@ -177,7 +177,7 @@ func splitInput(input string) ([]string, string) {
quoted := false
startlastcmd := false
lastcmddone := false
cmdArgs := []string{}
cmdArgs := []string{""}
sb := &strings.Builder{}
cmdstr := &strings.Builder{}
lastcmd := "" //readline.GetHistory(readline.HistorySize() - 1)