Skip to content

Commit

Permalink
Enqueue docs for flexSelect when under a group
Browse files Browse the repository at this point in the history
  • Loading branch information
natefaubion committed Mar 13, 2021
1 parent cc781eb commit 4c9dab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dodo.purs
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,12 @@ print (Printer printer) opts = flip go initState <<< pure <<< Doc
{ flexGroup = FlexGroupPending
}
FlexGroupPending | state.position.ribbonWidth > 0 ->
go (Doc doc1 : stk) state
go (Doc doc1 : Doc doc2 : stk) state
{ flexGroup = FlexGroupReset $ storeState stack state
, buffer = Buffer.branch state.buffer
}
_ ->
go (Doc doc1 : stk) state
go (Doc doc1 : Doc doc2 : stk) state
FlexAlt flexDoc doc1 -> case state.flexGroup of
FlexGroupReset _ ->
go (Doc flexDoc : stk) state
Expand Down

0 comments on commit 4c9dab3

Please sign in to comment.