MCPcopy Index your code
hub / github.com/micro-editor/micro / deleteFromStart

Method deleteFromStart

internal/buffer/line_array.go:275–277  ·  view source on GitHub ↗

deleteFromStart deletes from the start of a line to the position

(pos Loc)

Source from the content-addressed store, hash-verified

273
274// deleteFromStart deletes from the start of a line to the position
275func (la *LineArray) deleteFromStart(pos Loc) {
276 la.lines[pos.Y].data = la.lines[pos.Y].data[pos.X+1:]
277}
278
279// deleteLine deletes the line number
280func (la *LineArray) deleteLine(y int) {

Callers 1

removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected