mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-16 18:01:46 +02:00
Fix bug with newly opened terminals where user hits control-c immediately in new terminal
This commit is contained in:
@ -67,7 +67,12 @@ func getCwd() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BuildHistoryEntry(args []string) (*data.HistoryEntry, error) {
|
func BuildHistoryEntry(args []string) (*data.HistoryEntry, error) {
|
||||||
|
if len(args) < 6 {
|
||||||
|
GetLogger().Printf("BuildHistoryEntry called with args=%#v, which has too few entries! This can happen in specific edge cases for newly opened terminals and is likely not a problem.", args)
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
shell := args[2]
|
shell := args[2]
|
||||||
|
|
||||||
var entry data.HistoryEntry
|
var entry data.HistoryEntry
|
||||||
|
|
||||||
// exitCode
|
// exitCode
|
||||||
|
Reference in New Issue
Block a user