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

Method Insert

internal/buffer/eventhandler.go:184–187  ·  view source on GitHub ↗

Insert creates an insert text event and executes it

(start Loc, textStr string)

Source from the content-addressed store, hash-verified

182
183// Insert creates an insert text event and executes it
184func (eh *EventHandler) Insert(start Loc, textStr string) {
185 text := []byte(textStr)
186 eh.InsertBytes(start, text)
187}
188
189// InsertBytes creates an insert text event and executes it
190func (eh *EventHandler) InsertBytes(start Loc, text []byte) {

Callers 2

ApplyDiffMethod · 0.95
ReplaceMethod · 0.95

Calls 1

InsertBytesMethod · 0.95

Tested by

no test coverage detected