Fix bug with newly opened terminals where user hits control-c immediately in new terminal

This commit is contained in:
David Dworken
2022-05-27 23:05:28 -07:00
parent 0a31e8a787
commit 05c67895c8

View File

@ -67,7 +67,12 @@ func getCwd() (string, 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]
var entry data.HistoryEntry
// exitCode