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

Method remove

internal/buffer/buffer.go:135–140  ·  view source on GitHub ↗
(start, end Loc)

Source from the content-addressed store, hash-verified

133}
134
135func (b *SharedBuffer) remove(start, end Loc) []byte {
136 b.HasSuggestions = false
137 defer b.setModified()
138 defer b.MarkModified(start.Y, end.Y)
139 return b.LineArray.remove(start, end)
140}
141
142func (b *SharedBuffer) setModified() {
143 if b.Type.Scratch {

Callers 3

ExecuteTextEventFunction · 0.45
TestJoinFunction · 0.45
TestRemoveFunction · 0.45

Calls 2

setModifiedMethod · 0.95
MarkModifiedMethod · 0.95

Tested by 2

TestJoinFunction · 0.36
TestRemoveFunction · 0.36