2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 19:23:24 +00:00

fix: write to bottom of history file instead of at top

This commit is contained in:
TorchedSammy 2022-03-05 21:26:03 -04:00
parent 6740e012a5
commit 1cb536b1ac
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -28,7 +28,7 @@ func newFileHistory() (*fileHistory, error) {
}
itms = append(itms, l)
}
f, err := os.OpenFile(defaultHistPath, os.O_RDWR | os.O_CREATE, 0755)
f, err := os.OpenFile(defaultHistPath, os.O_APPEND | os.O_WRONLY | os.O_CREATE, 0755)
if err != nil {
return nil, err
}