on master help sign in
fix tests
commitbb303cf41d5bd02641bf436e07b08bd4ae5418de authorBlaž Hrastnik <blaz@mxxn.io> dateTue 8 Nov 2022, 22:20 (4 years ago) parentcd8bbbc
1 file changed+4−1
helix-core/src/transaction.rs+4−1
helix-core/src/transaction.rs+4−1
@@ -704,7 +704,10 @@ mod test {
704704
705705 #[test]
706706 fn optimized_composition() {
707− let mut state = State::new("".into());
707+ let mut state = State {
708+ doc: "".into(),
709+ selection: Selection::point(0),
710+ };
708711 let t1 = Transaction::insert(&state.doc, &state.selection, Tendril::from("h"));
709712 t1.apply(&mut state.doc);
710713 state.selection = state.selection.clone().map(t1.changes());