mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-27 02:34:06 +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) {
|
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) {
|
func shouldSkipHiddenCommand(historyLine string) (bool, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user