From 20bf5a76b843b2c56179d68ab28266b7471490ce Mon Sep 17 00:00:00 2001 From: usfbih8u <> Date: Mon, 24 Aug 2026 22:11:14 +0200 Subject: [PATCH] docs(internal/buffer): remove the reference to the old `ToCharPos` function The function was removed in commit `dc68183fc114ab2911d6ba934cf5df019566d0cf`. --- internal/buffer/loc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/buffer/loc.go b/internal/buffer/loc.go index 680b63a143..ee51beccc8 100644 --- a/internal/buffer/loc.go +++ b/internal/buffer/loc.go @@ -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