aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-29 06:22:43 +0000
committerBlaž Hrastnik2021-03-29 06:22:43 +0000
commitc1f2a14453c7621c22b0e4074a9feddac1a62b74 (patch)
tree14eef319099b6515ca1067b45ef6d9374763dfca /helix-view/src/editor.rs
parenta323155b99de591e0713d1bd31c32dceed569c2e (diff)
view: document.rs cleanup
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 374eddfd..f062b55d 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -174,6 +174,11 @@ impl Editor {
self.documents.iter().map(|(_id, doc)| doc)
}
+ // pub fn current_document(&self) -> Document {
+ // let id = self.view().doc;
+ // let doc = &mut editor.documents[id];
+ // }
+
pub fn cursor_position(&self) -> Option<helix_core::Position> {
const OFFSET: u16 = 7; // 1 diagnostic + 5 linenr + 1 gutter
let view = self.view();