From 6e71e375680c6a07f25e64ac35a56cddb6cd6163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:40:54 +0200 Subject: [PATCH] buffer: Rename `LineBytes` parameter to "lineN" to fit to the rest --- internal/buffer/line_array.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/buffer/line_array.go b/internal/buffer/line_array.go index 08847271..7906524a 100644 --- a/internal/buffer/line_array.go +++ b/internal/buffer/line_array.go @@ -328,11 +328,11 @@ func (la *LineArray) End() Loc { } // LineBytes returns line n as an array of bytes -func (la *LineArray) LineBytes(n int) []byte { - if n >= len(la.lines) || n < 0 { +func (la *LineArray) LineBytes(lineN int) []byte { + if lineN >= len(la.lines) || lineN < 0 { return []byte{} } - return la.lines[n].data + return la.lines[lineN].data } // State gets the highlight state for the given line number