Fix bug with pasting with new Location system

This commit is contained in:
Zachary Yedidia
2016-06-07 18:24:13 -04:00
parent d72da1eb5c
commit 3deee51537

View File

@@ -82,10 +82,10 @@ func (eh *EventHandler) Insert(start Loc, text string) {
EventType: TextEventInsert,
Text: text,
Start: start,
End: start.Move(Count(text), eh.buf),
Time: time.Now(),
}
eh.Execute(e)
e.End = start.Move(Count(text), eh.buf)
}
// Remove creates a remove text event and executes it