Fix undo autocomplete

This commit is contained in:
Zachary Yedidia
2020-08-16 01:03:41 -04:00
parent 724cedd37b
commit 98b3ed0eec
4 changed files with 17 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package buffer
import (
"bytes"
"log"
"time"
dmp "github.com/sergi/go-diff/diffmatchpatch"
@@ -52,6 +53,7 @@ func (eh *EventHandler) DoTextEvent(t *TextEvent, useUndo bool) {
}
if len(t.Deltas) != 1 {
log.Println("Multiple deltas not supported")
return
}