Skip to content

Commit

Permalink
Avoid redoing bidi
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Mar 6, 2018
1 parent 3180fcd commit 77459e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bidi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ local reorder = function(n, self)
if nl[i]:isNnode() and levels[i].level %2 ~= base_level then
table.flip(nl[i].nodes)
reverse_each_node(nl[i].nodes)
elseif nl[i]:isDiscretionary() and levels[i].level %2 ~= base_level then
elseif nl[i]:isDiscretionary() and levels[i].level %2 ~= base_level and not nl[i].bidiDone then
for j = 1,#(nl[i].replacement) do
table.flip(nl[i].replacement[j].nodes)
reverse_each_node(nl[i].replacement[j].nodes)
Expand Down

0 comments on commit 77459e5

Please sign in to comment.