- Commit
- 980231a345e5a5e9c3b4eb7f84896e6fccb429b5
- Parent
- fccb9fb46cf18ebd12e7661b253ecb4eeed13b4a
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Added comment.
My personal build of CMark ✏️
Added comment.
1 file changed, 1 insertion, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/inlines.c | 1 | 1 | 0 |
diff --git a/src/inlines.c b/src/inlines.c @@ -254,6 +254,7 @@ scan_delims(subject* subj, unsigned char c, bool * can_open, bool * can_close) before_char = 10; } else { before_char_pos = subj->pos - 1; + // walk back to the beginning of the UTF_8 sequence: while (peek_at(subj, before_char_pos) >> 6 == 2 && before_char_pos > 0) { before_char_pos -= 1;