aboutsummaryrefslogtreecommitdiff
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.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index ed0df9cf..d8aa3ed4 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -261,20 +261,11 @@ impl State {
granularity: Granularity,
count: usize,
) -> Selection {
- // TODO: move all selections according to normal cursor move semantics by collapsing it
+ // move all selections according to normal cursor move semantics by collapsing it
// into cursors and moving them vertically
self.selection.transform(|range| {
- // let pos = if !range.is_empty() {
- // // if selection already exists, bump it to the start or end of current select first
- // if dir == Direction::Backward {
- // range.from()
- // } else {
- // range.to()
- // }
- // } else {
let pos = self.move_pos(range.head, dir, granularity, count);
- // };
Range::new(pos, pos)
})
}