aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/view.rs')
-rw-r--r--helix-view/src/view.rs40
1 files changed, 20 insertions, 20 deletions
diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs
index 4cf6a2ee..df41e3ae 100644
--- a/helix-view/src/view.rs
+++ b/helix-view/src/view.rs
@@ -86,24 +86,24 @@ impl View {
Some(Position::new(row, col))
}
- pub fn traverse<F>(&self, text: &RopeSlice, start: usize, end: usize, fun: F)
- where
- F: Fn(usize, usize),
- {
- let start = self.screen_coords_at_pos(text, start);
- let end = self.screen_coords_at_pos(text, end);
-
- match (start, end) {
- // fully on screen
- (Some(start), Some(end)) => {
- // we want to calculate ends of lines for each char..
- }
- // from start to end of screen
- (Some(start), None) => {}
- // from start of screen to end
- (None, Some(end)) => {}
- // not on screen
- (None, None) => return,
- }
- }
+ // pub fn traverse<F>(&self, text: &RopeSlice, start: usize, end: usize, fun: F)
+ // where
+ // F: Fn(usize, usize),
+ // {
+ // let start = self.screen_coords_at_pos(text, start);
+ // let end = self.screen_coords_at_pos(text, end);
+
+ // match (start, end) {
+ // // fully on screen
+ // (Some(start), Some(end)) => {
+ // // we want to calculate ends of lines for each char..
+ // }
+ // // from start to end of screen
+ // (Some(start), None) => {}
+ // // from start of screen to end
+ // (None, Some(end)) => {}
+ // // not on screen
+ // (None, None) => return,
+ // }
+ // }
}