aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index fb21672..859e046 100644
--- a/src/io.c
+++ b/src/io.c
@@ -60,6 +60,7 @@ char infile_peek_char(InFile* f) {
// TODO: crlf
if (c2 == '\r' || c2 == '\n') {
f->pos += 2;
+ ++f->loc.line;
return infile_peek_char(f);
}
}