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

Method RelocateCursors

internal/buffer/buffer.go:633–637  ·  view source on GitHub ↗

RelocateCursors relocates all cursors (makes sure they are in the buffer)

()

Source from the content-addressed store, hash-verified

631
632// RelocateCursors relocates all cursors (makes sure they are in the buffer)
633func (b *Buffer) RelocateCursors() {
634 for _, c := range b.cursors {
635 c.Relocate()
636 }
637}
638
639// DeselectCursors removes selection from all cursors
640func (b *Buffer) DeselectCursors() {

Callers 7

saveToFileMethod · 0.95
ReOpenMethod · 0.95
IndentSelectionMethod · 0.80
IndentLineMethod · 0.80
OutdentLineMethod · 0.80
OutdentSelectionMethod · 0.80
ReplaceCmdMethod · 0.80

Calls 1

RelocateMethod · 0.65

Tested by

no test coverage detected