From ca1987a9ab7f5c3893bbc8844c683f677a2a6044 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Mon, 18 Apr 2022 22:19:51 -0700 Subject: [PATCH] Fix OBO that removed first character from recorded commands --- client/lib/lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {