Skip to content

Commit

Permalink
fix truncation bug causing duplicated selected token to appear on sub…
Browse files Browse the repository at this point in the history
…sequent expansion
  • Loading branch information
dm0n3y committed Jan 3, 2025
1 parent 5f259bb commit 2766613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/editor/Modify.re
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ let try_truncate = (z: Zipper.t) => {
};
ctx
|> Ctx.push(~onto=L, tok)
|> Ctx.push(~onto=R, tok)
|> (Token.is_complete(tok) ? Fun.id : Ctx.push(~onto=R, tok))
|> Zipper.mk
|> Option.some;
| _ => None
Expand Down

0 comments on commit 2766613

Please sign in to comment.