bugfix: histfile fullRecords were not getting new records

ctrl+R was stuck with history from time when the daemon started
pull/77/head v2.5.9
Simon Let 6 years ago
parent d7915edebe
commit 732a75754b
  1. 1
      pkg/histfile/histfile.go

@ -179,6 +179,7 @@ func (h *Histfile) mergeAndWriteRecord(part1, part2 records.Record) {
cmdLine := part1.CmdLine cmdLine := part1.CmdLine
h.bashCmdLines.AddCmdLine(cmdLine) h.bashCmdLines.AddCmdLine(cmdLine)
h.zshCmdLines.AddCmdLine(cmdLine) h.zshCmdLines.AddCmdLine(cmdLine)
h.fullRecords.AddRecord(part1)
}() }()
writeRecord(part1, h.historyPath) writeRecord(part1, h.historyPath)

Loading…
Cancel
Save