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

fix: dont write history automatically with rl library

This commit is contained in:
TorchedSammy 2022-03-05 21:29:13 -04:00
parent 1cb536b1ac
commit 0637f2763b
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

1
rl.go
View File

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