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

Method deleteToEnd

internal/buffer/line_array.go:270–272  ·  view source on GitHub ↗

deleteToEnd deletes from the end of a line to the position

(pos Loc)

Source from the content-addressed store, hash-verified

268
269// deleteToEnd deletes from the end of a line to the position
270func (la *LineArray) deleteToEnd(pos Loc) {
271 la.lines[pos.Y].data = la.lines[pos.Y].data[:pos.X]
272}
273
274// deleteFromStart deletes from the start of a line to the position
275func (la *LineArray) deleteFromStart(pos Loc) {

Callers 2

splitMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected