mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-26 19:00:25 +00:00
Fix bug with pasting with new Location system
This commit is contained in:
parent
d72da1eb5c
commit
3deee51537
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue