This commit is contained in:
Antonio Scandurra 2021-04-12 19:05:56 +02:00
parent 3a33fab091
commit 8f6b8b2e43
2 changed files with 2 additions and 0 deletions

View File

@ -2290,6 +2290,7 @@ impl ToPoint for usize {
#[cfg(test)]
mod tests {
use super::*;
use cmp::Ordering;
use gpui::App;
use std::collections::BTreeMap;
use std::{cell::RefCell, rc::Rc};

View File

@ -722,6 +722,7 @@ impl BufferView {
}
fn update_selections(&self, mut selections: Vec<Selection>, ctx: &mut ViewContext<Self>) {
// Merge overlapping selections.
let buffer = self.buffer.as_ref(ctx);
let mut i = 1;
while i < selections.len() {