[hebrew] Break out of reordering loop when pattern found

This commit is contained in:
Behdad Esfahbod 2022-07-20 11:16:32 -06:00
parent 42f1d7794b
commit 5998cd00c8
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ reorder_marks_hebrew (const hb_ot_shape_plan_t *plan HB_UNUSED,
{ {
buffer->merge_clusters (i - 1, i + 1); buffer->merge_clusters (i - 1, i + 1);
hb_swap (info[i - 1], info[i]); hb_swap (info[i - 1], info[i]);
break;
} }
} }