Skip to content

Commit

Permalink
always update state
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Oct 20, 2023
1 parent 8c7149b commit 4085574
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utf8proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,11 @@ static utf8proc_bool grapheme_break_extended(int lbc, int tbc, int licb, int tic
state_bc = UTF8PROC_BOUNDCLASS_E_ZWG; // state to record emoji+zwg combo
else
state_bc = tbc;

*state = state_bc + (state_ibc << 8);
}
else
*state = tbc;
state_bc = tbc;

*state = state_bc + (state_ibc << 8);
return break_permitted;
}
else
Expand Down

0 comments on commit 4085574

Please sign in to comment.