diff options
author | Blaž Hrastnik | 2022-11-08 12:03:54 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-11-08 12:03:54 +0000 |
commit | c94feed83d746e71fb030639d740af85162b0763 (patch) | |
tree | afe451cc4d61415282e063c670dd78f67f10ccc2 /helix-core/src/state.rs | |
parent | 13126823f83cb90a3aabfc2326c0907d1ca2d921 (diff) |
core: Move state into the history module
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r-- | helix-core/src/state.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs deleted file mode 100644 index dcc4b11b..00000000 --- a/helix-core/src/state.rs +++ /dev/null @@ -1,17 +0,0 @@ -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), - } - } -} |