mirror of https://github.com/Hilbis/Hilbish
fix: write to bottom of history file instead of at top
parent
6740e012a5
commit
1cb536b1ac
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue