mirror of
https://github.com/ollama/ollama.git
synced 2025-07-27 16:22:57 +02:00
history: update pos after compact
This commit is contained in:
@@ -78,8 +78,8 @@ func (h *History) Init() error {
|
|||||||
|
|
||||||
func (h *History) Add(l []rune) {
|
func (h *History) Add(l []rune) {
|
||||||
h.Buf.Add(l)
|
h.Buf.Add(l)
|
||||||
h.Pos = h.Size()
|
|
||||||
h.Compact()
|
h.Compact()
|
||||||
|
h.Pos = h.Size()
|
||||||
if h.Autosave {
|
if h.Autosave {
|
||||||
h.Save()
|
h.Save()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user