2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 19:23:24 +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)
}
rl.SetHistoryCtrlR("file", fileHist)
rl.HistoryAutoWrite = false
rl.ShowVimMode = false
rl.ViModeCallback = func(mode readline.ViMode) {
modeStr := ""