aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-10 21:40:44 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-10 21:40:44 -0700
commit529ff8fb4ff104ee4107512c6ab12577842b428d (patch)
tree3289c998a37e9eaa2c688c6a8c53c23068474a3f
parentcf1e5d8f9c143bd129e3ce6b30f5c5614f59036a (diff)
Bugfix for error printing
-rw-r--r--files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/files.c b/files.c
index 1bde7b4..4cb00cc 100644
--- a/files.c
+++ b/files.c
@@ -224,7 +224,7 @@ void fprint_line(FILE *dest, file_t *f, const char *start, const char *end, cons
linenum,
(int)charnum - 1, line,
(int)(end - &line[charnum-1]), &line[charnum-1],
- (int)(eol - end - 1), end);
+ (int)(eol - end), end);
fprintf(dest, " \033[34;1m");
const char *p = line;
for (; p < start; ++p) (void)fputc(*p == '\t' ? '\t' : ' ', dest);