mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-23 08:45:16 +01:00
Fix OBO that removed first character from recorded commands
This commit is contained in:
parent
ce0a0742b7
commit
ca1987a9ab
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user