Insert inserts the given string of text at the start location
(start Loc, text string)
| 557 | |
| 558 | // Insert inserts the given string of text at the start location |
| 559 | func (b *Buffer) Insert(start Loc, text string) { |
| 560 | if !b.Type.Readonly { |
| 561 | b.EventHandler.cursors = b.cursors |
| 562 | b.EventHandler.active = b.curCursor |
| 563 | b.EventHandler.Insert(start, text) |
| 564 | } |
| 565 | } |
| 566 | |
| 567 | // Remove removes the characters between the start and end locations |
| 568 | func (b *Buffer) Remove(start, end Loc) { |
no outgoing calls