buffer: Rename LineBytes parameter to "lineN" to fit to the rest

This commit is contained in:
Jöran Karl
2024-04-04 21:40:54 +02:00
parent dd7134a762
commit 6e71e37568

View File

@@ -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