RangeSelect command can now shrink the selection
@@ -419,7 +419,6 @@ impl View {
/// Selects a specific range (eg. when the user performs SHIFT + click).
pub fn select_range(&mut self, text: &Rope, offset: usize) {
- if !self.is_point_in_selection(offset) {
let sel = {
let (last, rest) = self.sel_regions().split_last().unwrap();
let mut sel = Selection::new();
@@ -435,7 +434,6 @@ impl View {
self.set_selection(text, sel);
self.start_drag(offset, offset, offset);
}
- }
/// Selects the given region and supports multi selection.
fn select_region(&mut self, text: &Rope, offset: usize, region: SelRegion, multi_select: bool) {
