edit: Insert history in a separate goroutine.

This commit is contained in:
Qi Xiao 2016-02-15 09:56:44 +01:00
parent a1b770db3a
commit d1fbe07f46

View File

@ -15,8 +15,10 @@ func (h *historyState) jump(i int, line string) {
func (ed *Editor) appendHistory(line string) {
if ed.store != nil {
go func() {
ed.store.AddCmd(line)
// TODO(xiaq): Report possible error
}()
}
}