summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 495841b5..a9b90e78 100644
--- a/main.c
+++ b/main.c
@@ -375,9 +375,9 @@ fdesc(struct buf *blk, struct buf *ln, struct curparse *curp)
comment = 1;
pos -= 2;
for (; pos > 0; --pos) {
- if (ln->buf[pos] != ' ')
+ if (ln->buf[pos - 1] != ' ')
break;
- if (ln->buf[pos - 1] == '\\')
+ if (pos > 2 && ln->buf[pos - 2] == '\\')
break;
}
continue;