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

Method joinLines

internal/buffer/line_array.go:234–237  ·  view source on GitHub ↗

joinLines joins the two lines a and b

(a, b int)

Source from the content-addressed store, hash-verified

232
233// joinLines joins the two lines a and b
234func (la *LineArray) joinLines(a, b int) {
235 la.lines[a].data = append(la.lines[a].data, la.lines[b].data...)
236 la.deleteLine(b)
237}
238
239// split splits a line at a given position
240func (la *LineArray) split(pos Loc) {

Callers 1

removeMethod · 0.95

Calls 1

deleteLineMethod · 0.95

Tested by

no test coverage detected