Replace deletes from start to end and replaces it with the given string
(start, end Loc, replace string)
| 230 | |
| 231 | // Replace deletes from start to end and replaces it with the given string |
| 232 | func (eh *EventHandler) Replace(start, end Loc, replace string) { |
| 233 | eh.Remove(start, end) |
| 234 | eh.Insert(start, replace) |
| 235 | } |
| 236 | |
| 237 | // Execute a textevent and add it to the undo stack |
| 238 | func (eh *EventHandler) Execute(t *TextEvent) { |
no test coverage detected