Remove removes the characters between the start and end locations
(start, end Loc)
| 566 | |
| 567 | // Remove removes the characters between the start and end locations |
| 568 | func (b *Buffer) Remove(start, end Loc) { |
| 569 | if !b.Type.Readonly { |
| 570 | b.EventHandler.cursors = b.cursors |
| 571 | b.EventHandler.active = b.curCursor |
| 572 | b.EventHandler.Remove(start, end) |
| 573 | } |
| 574 | } |
| 575 | |
| 576 | // FileType returns the buffer's filetype |
| 577 | func (b *Buffer) FileType() string { |
no outgoing calls
no test coverage detected