summaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 8ff86f0c..b02f9b39 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -27,22 +27,22 @@ impl State {
pub fn new(doc: Rope) -> Self {
Self {
doc,
- selection: Selection::single(0, 0),
+ selection: Selection::point(0),
}
}
// TODO: doc/selection accessors
// TODO: be able to take either Rope or RopeSlice
- #[inline]
- pub fn doc(&self) -> &Rope {
- &self.doc
- }
+ // #[inline]
+ // pub fn doc(&self) -> &Rope {
+ // &self.doc
+ // }
- #[inline]
- pub fn selection(&self) -> &Selection {
- &self.selection
- }
+ // #[inline]
+ // pub fn selection(&self) -> &Selection {
+ // &self.selection
+ // }
// pub fn doc<R>(&self, range: R) -> RopeSlice
// where