diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-17 02:37:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-17 02:37:41 +0100 |
commit | 59e2da485ea82fb1ee9f6f565ba5084c41f85143 (patch) | |
tree | b8c8d110ca18c2c5b01c9b875c4945e75c1e9da0 /src/mds-kbdc/parse-error.c | |
parent | m (diff) | |
download | mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.gz mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.bz2 mds-59e2da485ea82fb1ee9f6f565ba5084c41f85143.tar.xz |
small fixes and a bunch of tests
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc/parse-error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-kbdc/parse-error.c b/src/mds-kbdc/parse-error.c index 1ad5ae1..298c712 100644 --- a/src/mds-kbdc/parse-error.c +++ b/src/mds-kbdc/parse-error.c @@ -82,7 +82,7 @@ void mds_kbdc_parse_error_print(const mds_kbdc_parse_error_t* restrict this, FIL /* Print error information. */ fprintf(output, "\033[01m%s\033[21m:", this->pathname); /* TODO should be relative to the current dir */ if (this->error_is_in_file) - fprintf(output, "%zu:%zu–%zu:", this->line + 1, start + 1, end + 1); + fprintf(output, "%zu:%zu–%zu:", this->line + 1, start, end); switch (this->severity) { case MDS_KBDC_PARSE_ERROR_NOTE: fprintf(output, " \033[01;36mnote:\033[00m "); break; |