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

windows-fixes
TorchedSammy 2022-03-05 21:26:03 -04:00
parent 6740e012a5
commit 1cb536b1ac
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

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
}