MCPcopy
hub / github.com/micro-editor/micro / Remove

Method Remove

internal/buffer/buffer.go:568–574  ·  view source on GitHub ↗

Remove removes the characters between the start and end locations

(start, end Loc)

Source from the content-addressed store, hash-verified

566
567// Remove removes the characters between the start and end locations
568func (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
577func (b *Buffer) FileType() string {

Callers 15

saveToFileMethod · 0.95
MoveLinesUpMethod · 0.95
MoveLinesDownMethod · 0.95
InsertNewlineMethod · 0.45
BackspaceMethod · 0.45
DeleteMethod · 0.45
OutdentLineMethod · 0.45
OutdentSelectionMethod · 0.45
writeBackupMethod · 0.45
removeBackupMethod · 0.45
safeWriteMethod · 0.45
DeleteSelectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected