mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-03 12:13:25 +00:00
fix: dont write history automatically with rl library
This commit is contained in:
parent
1cb536b1ac
commit
0637f2763b
1
rl.go
1
rl.go
@ -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 := ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user