Fix OBO that removed first character from recorded commands

This commit is contained in:
David Dworken 2022-04-18 22:19:51 -07:00
parent ce0a0742b7
commit ca1987a9ab

View File

@ -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) {