mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +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) {
|
func (ed *Editor) appendHistory(line string) {
|
||||||
if ed.store != nil {
|
if ed.store != nil {
|
||||||
ed.store.AddCmd(line)
|
go func() {
|
||||||
// TODO(xiaq): Report possible error
|
ed.store.AddCmd(line)
|
||||||
|
// TODO(xiaq): Report possible error
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user