mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-27 03:43:29 +04:00
9d4c301563
This is a legacy type that should be fully removed.
18 lines
285 B
Rust
18 lines
285 B
Rust
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),
|
|
}
|
|
}
|
|
}
|