Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer authored and Frederik Vestre committed Feb 6, 2023
1 parent 53c7b88 commit 8a920c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helix-core/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,10 @@ mod test {

#[test]
fn optimized_composition() {
let mut state = State::new("".into());
let mut state = State {
doc: "".into(),
selection: Selection::point(0),
};
let t1 = Transaction::insert(&state.doc, &state.selection, Tendril::from("h"));
t1.apply(&mut state.doc);
state.selection = state.selection.clone().map(t1.changes());
Expand Down

0 comments on commit 8a920c5

Please sign in to comment.