c3317215 ^
8b3e1521 ^
7cc13fef ^
44ff4d3c ^
48330ddb ^
b5c38812 ^
613d06df ^
1cf887de ^
10d53f3e ^
1
2
3
4
5 6
7 8 9
10
11
12
13
14
15 16
17
use crate::{Rope, Selection}; #[derive(Debug, Clone)] pub struct State { pub doc: Rope, pub selection: Selection, } impl State { #[must_use] pub fn new(doc: Rope) -> Self { Self { doc, selection: Selection::point(0), } } }