mirror of https://github.com/Hilbis/Hilbish
feat: make history clear function work again
parent
7272e035d9
commit
1d4c8a7645
|
@ -78,3 +78,9 @@ func (h *fileHistory) Len() int {
|
||||||
func (h *fileHistory) Dump() interface{} {
|
func (h *fileHistory) Dump() interface{} {
|
||||||
return h.items
|
return h.items
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (h *fileHistory) clear() {
|
||||||
|
h.items = []string{}
|
||||||
|
h.f.Truncate(0)
|
||||||
|
h.f.Sync()
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue