diff --git a/history.go b/history.go index b154aed..58c4186 100644 --- a/history.go +++ b/history.go @@ -117,7 +117,7 @@ func (o *opHistory) rewriteLocked() { buf := bufio.NewWriter(fd) for elem := o.history.Front(); elem != nil; elem = elem.Next() { - buf.WriteString(string(elem.Value.(*hisItem).Source)) + buf.WriteString(string(elem.Value.(*hisItem).Source) + "\n") } buf.Flush()