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

Method End

internal/buffer/cursor.go:139–142  ·  view source on GitHub ↗

End moves the cursor to the end of the line it is on

()

Source from the content-addressed store, hash-verified

137
138// End moves the cursor to the end of the line it is on
139func (c *Cursor) End() {
140 c.X = util.CharacterCount(c.buf.LineBytes(c.Y))
141 c.StoreVisualX()
142}
143
144// CopySelection copies the user's selection to either "primary"
145// or "clipboard"

Callers 15

SelectLineMethod · 0.95
AddLineToSelectionMethod · 0.95
LeftMethod · 0.95
RelocateMethod · 0.45
rightMethod · 0.45
clampFunction · 0.45
saveToFileMethod · 0.45
NewBufferFunction · 0.45
UpdateRulesMethod · 0.45
WriteMethod · 0.45
WriteLogFunction · 0.45
RightMethod · 0.45

Calls 3

StoreVisualXMethod · 0.95
CharacterCountFunction · 0.92
LineBytesMethod · 0.65

Tested by

no test coverage detected