Skip to content

Commit

Permalink
remove a collapsible if sneaked in rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
asibahi committed Oct 24, 2024
1 parent 4e1f322 commit efe463f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/hb/ot_shaper_arabic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,16 @@ fn arabic_joining(buffer: &mut hb_buffer_t) {
}
}
// States that have a possible prev_action.
else if let Some(prev) = prev {
if this_type >= hb_arabic_joining_type_t::R || (2..=5).contains(&state) {
buffer.unsafe_to_concat(Some(prev), Some(i + 1));
else {
if let Some(prev) = prev {
if this_type >= hb_arabic_joining_type_t::R || (2..=5).contains(&state) {
buffer.unsafe_to_concat(Some(prev), Some(i + 1));
}
} else {
if this_type >= hb_arabic_joining_type_t::R {
buffer.unsafe_to_concat_from_outbuffer(Some(0), Some(i + 1));
}
}
} else if this_type >= hb_arabic_joining_type_t::R {
buffer.unsafe_to_concat_from_outbuffer(Some(0), Some(i + 1));
}

buffer.info[i].set_arabic_shaping_action(entry.1);
Expand Down

0 comments on commit efe463f

Please sign in to comment.