mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-28 09:50:21 +09:00
Fix bug with pasting with new Location system
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user