From 2238f348e174c42e000b5735d77f361c559d903b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 9 Feb 2026 08:14:52 +0000 Subject: [PATCH] stream: stream_line_col includes current position in computation --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index a915683..5397200 100644 --- a/src/stream.c +++ b/src/stream.c @@ -396,7 +396,7 @@ void stream_line_col(stream_t *stream, u64 *line, u64 *col) // Generate a string view from the stream of exactly the content /upto/ // stream.postion. sv_t sv = stream_sv_abs(stream); - sv = sv_truncate(sv, stream->position); + sv = sv_truncate(sv, stream->position + 1); *line = 1; *col = 0;