From 9132c6a591fc4515cdddfd16cc382fc3368ed27c Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 21 Feb 2021 19:47:21 +0900 Subject: Make some Document fields read-only. --- helix-core/src/state.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'helix-core') 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 } -- cgit v1.2.3-70-g09d2