fix: dont write history automatically with rl library

windows-fixes
TorchedSammy 2022-03-05 21:29:13 -04:00
parent 1cb536b1ac
commit 0637f2763b
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 0 deletions

1
rl.go
View File

@ -23,6 +23,7 @@ func newLineReader(prompt string) *lineReader {
panic(err)
}
rl.SetHistoryCtrlR("file", fileHist)
rl.HistoryAutoWrite = false
rl.ShowVimMode = false
rl.ViModeCallback = func(mode readline.ViMode) {
modeStr := ""