commit 289ce5e041b6f281e3a3e990da5fd2ee4f09160d
parent e0f0899eaae656ddd731178a476221599d16b009
Author: Keno Fischer <kfischer+github@college.harvard.edu>
Date: Wed, 13 Jul 2016 12:33:50 -0400
Fix incorrect use of `lbc` instead of `lbc_override` (#77)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utf8proc.c b/utf8proc.c
@@ -287,7 +287,7 @@ static utf8proc_bool grapheme_break_extended(int lbc, int tbc, utf8proc_int32_t
int lbc_override = lbc;
if (state && *state != UTF8PROC_BOUNDCLASS_START)
lbc_override = *state;
- utf8proc_bool break_permitted = grapheme_break_simple(lbc, tbc);
+ utf8proc_bool break_permitted = grapheme_break_simple(lbc_override, tbc);
if (state) {
// Special support for GB 12/13 made possible by GB999. After two RI
// class codepoints we want to force a break. Do this by resetting the