mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-12 17:27:50 +08:00
edit: Insert history in a separate goroutine.
This commit is contained in:
parent
a1b770db3a
commit
d1fbe07f46
|
@ -15,8 +15,10 @@ func (h *historyState) jump(i int, line string) {
|
|||
|
||||
func (ed *Editor) appendHistory(line string) {
|
||||
if ed.store != nil {
|
||||
ed.store.AddCmd(line)
|
||||
// TODO(xiaq): Report possible error
|
||||
go func() {
|
||||
ed.store.AddCmd(line)
|
||||
// TODO(xiaq): Report possible error
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user