Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/micro-editor/micro
/ NewCursor
Function
NewCursor
internal/buffer/cursor.go:48–57 ·
view source on GitHub ↗
(b *Buffer, l Loc)
Source
from the content-addressed store, hash-verified
46
}
47
48
func
NewCursor(b *Buffer, l Loc) *Cursor {
49
c := &Cursor{
50
buf: b,
51
Loc: l,
52
53
NewTrailingWsY: -1,
54
}
55
c.StoreVisualX()
56
return
c
57
}
58
59
func
(c *Cursor) SetBuf(b *Buffer) {
60
c.buf = b
Callers
8
SpawnMultiCursor
Method · 0.92
SpawnCursorAtLoc
Method · 0.92
SpawnMultiCursorUpN
Method · 0.92
SpawnMultiCursorSelect
Method · 0.92
MouseMultiCursor
Method · 0.92
check
Function · 0.85
benchEdit
Function · 0.85
NewBuffer
Function · 0.85
Calls
1
StoreVisualX
Method · 0.95
Tested by
2
check
Function · 0.68
benchEdit
Function · 0.68