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

Method deleteLine

internal/buffer/line_array.go:280–282  ·  view source on GitHub ↗

deleteLine deletes the line number

(y int)

Source from the content-addressed store, hash-verified

278
279// deleteLine deletes the line number
280func (la *LineArray) deleteLine(y int) {
281 la.lines = la.lines[:y+copy(la.lines[y:], la.lines[y+1:])]
282}
283
284func (la *LineArray) deleteLines(y1, y2 int) {
285 la.lines = la.lines[:y1+copy(la.lines[y1:], la.lines[y2+1:])]

Callers 1

joinLinesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected