2
2
spegling av https://github.com/Hilbis/Hilbish synced 2025-07-03 01:32:03 +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
förälder 6740e012a5
incheckning 1cb536b1ac
Signerad av: sammyette
GPG-nyckel ID: 904FC49417B44DCD

Visa fil

@ -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
}