From 3b9a8c18c78058331a1f4bd32507273853442e2d Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 17 Aug 2018 22:30:27 +0900 Subject: [PATCH] [bim] fix an accidental off-by-one closing comments --- apps/bim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bim.c b/apps/bim.c index 45258c47..6a180c7b 100644 --- a/apps/bim.c +++ b/apps/bim.c @@ -332,7 +332,7 @@ static int syn_c_extended(line_t * line, int i, int c, int last, int * out_left) if (i < line->actual - 1 && line->text[i+1].codepoint == '*') { int last = 0; - for (int j = i + 2; j < line->actual - 1; ++j) { + for (int j = i + 2; j < line->actual; ++j) { int c = line->text[j].codepoint; if (c == '/' && last == '*') { *out_left = j - i;