From 03b98bdd268dd52ea8eb11245fedb217a583718a Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Fri, 11 Jun 2021 18:03:52 -0400 Subject: [PATCH] revert: fix: panic on ctrl d on continued input This reverts commit 72973eade78eb313a255b582112318b31ba9f473. i'm kinda a bit dumb this fix broke basically everything else that used the splitInput function --- shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.go b/shell.go index baf0f2d..8b2bcf0 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)