mirror of
https://github.com/micro-editor/micro.git
synced 2026-10-12 02:18:55 +00:00
docs(internal/buffer): remove the reference to the old ToCharPos function (#4182)
The function was removed in commit `dc68183fc114ab2911d6ba934cf5df019566d0cf`. Co-authored-by: usfbih8u <>
This commit is contained in:
@@ -134,7 +134,7 @@ func (l Loc) Move(n int, buf *Buffer) Loc {
|
||||
return l.MoveLA(n, buf.LineArray)
|
||||
}
|
||||
|
||||
// ByteOffset is just like ToCharPos except it counts bytes instead of runes
|
||||
// ByteOffset converts an x, y position into a byte offset in the buffer
|
||||
func ByteOffset(pos Loc, buf *Buffer) int {
|
||||
x, y := pos.X, pos.Y
|
||||
loc := 0
|
||||
|
||||
Reference in New Issue
Block a user