Commit d4a9f9e1ca6657d34191354990f685d7c6db4185

Thomas de Grivel 2024-07-20T19:24:25

fix line counting in buf_parse_block_inner

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libkc3/buf_parse.c b/libkc3/buf_parse.c
index 7b3b765..fa300a1 100644
--- a/libkc3/buf_parse.c
+++ b/libkc3/buf_parse.c
@@ -532,8 +532,6 @@ sw buf_parse_block_inner (s_buf *buf, bool short_form, s_block *block)
         goto clean;
       }
     }
-    else
-      buf->line++;
     result += r;
     if ((r = buf_parse_comments(buf)) < 0) {
       err_puts("buf_parse_block_inner: buf_parse_comments 2");