aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-21 10:47:21 +0000
committerBlaž Hrastnik2021-02-21 10:47:21 +0000
commit9132c6a591fc4515cdddfd16cc382fc3368ed27c (patch)
treea98facaaaf7ae2c71f8a85a2cac650427c7126b9 /helix-core
parent7da6bd6a71531713c4de58b04810e32e16eb349a (diff)
Make some Document fields read-only.
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/state.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 65194b38..d597fcbb 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -198,9 +198,6 @@ impl State {
granularity: Granularity,
count: usize,
) -> Selection {
- // move all selections according to normal cursor move semantics by collapsing it
- // into cursors and moving them vertically
-
self.selection
.transform(|range| self.move_range(range, dir, granularity, count, false))
}
@@ -255,7 +252,6 @@ fn move_vertically(
let pos = pos_at_coords(text, Position::new(new_line, new_col));
let mut range = Range::new(if extend { range.anchor } else { pos }, pos);
- use std::convert::TryInto;
range.horiz = Some(horiz);
range
}