From 72973eade78eb313a255b582112318b31ba9f473 Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Fri, 11 Jun 2021 17:58:35 -0400 Subject: [PATCH] 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 --- shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.go b/shell.go index 8b2bcf0..baf0f2d 100644 --- a/shell.go +++ b/shell.go @@ -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)