Skip to content

Commit

Permalink
fix #48 and part of #51
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Dec 6, 2024
1 parent ef82f27 commit 0c5a6d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/layout/Layout.re
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ module State = {
loc: Loc.t,
};

let debug = ref(false);

let init = {ind: Indent.init, loc: Loc.zero};

let map = (f, s: t) => {...s, loc: f(s.loc)};
Expand Down Expand Up @@ -97,7 +99,7 @@ module State = {
|> Lists.fold_left(~init=s, ~f=(s, (i, (cell, b_tok))) =>
s
|> jump_cell(~over=cell)
|> (i == 0 ? push_ind : Fun.id)
|> (i == 0 && !Mtrl.is_space(LTerr.sort(over)) ? push_ind : Fun.id)
|> jump_tok(~over=b_tok)
)
|> (closed ? Fun.id : pop_ind);
Expand Down

0 comments on commit 0c5a6d4

Please sign in to comment.