diff --git a/text/reader.go b/text/reader.go index 8298fcf..d1c435f 100644 --- a/text/reader.go +++ b/text/reader.go @@ -189,7 +189,7 @@ func (r *reader) AdvanceLine() { if r.pos.Start < 0 { return } - r.pos.Stop = invalidValue + r.pos.Stop = r.sourceLength for i := r.pos.Start; i < r.sourceLength; i++ { c := r.source[i] if c == '\n' {