Skip to content

Commit

Permalink
fix layout path_of_loc bug breaking vertical movement
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Aug 31, 2024
1 parent 0f7a4e1 commit 563b144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layout/Layout.re
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ let path_of_loc =
: Result.t(Path.t, State.t) => {
open Result.Syntax;
let rec go = (~state, t: Tree.t) => {
let s_end = State.jump_block(state, ~over=Tree.flatten(tree));
let s_end = State.jump_block(state, ~over=Tree.flatten(t));
if (Loc.lt(s_end.loc, target)) {
Error({...s_end, ind: state.ind});
} else if (Loc.eq(s_end.loc, target)) {
Expand Down

0 comments on commit 563b144

Please sign in to comment.