diff --git a/client/lib/lib.go b/client/lib/lib.go index 293f1d1..4e1c76f 100644 --- a/client/lib/lib.go +++ b/client/lib/lib.go @@ -139,7 +139,7 @@ func parseCrossPlatformInt(data string) (int64, error) { } func getLastCommand(history string) (string, error) { - return strings.SplitN(strings.SplitN(strings.TrimSpace(history), " ", 2)[1], " ", 2)[1][1:], nil + return strings.SplitN(strings.SplitN(strings.TrimSpace(history), " ", 2)[1], " ", 2)[1], nil } func shouldSkipHiddenCommand(historyLine string) (bool, error) {