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:
usfbih8u
2026-08-27 18:03:27 +02:00
committed by GitHub
co-authored by usfbih8u
parent 22930a5087
commit 1e666bd44e
+1 -1
View File
@@ -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