mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 05:37:29 +03:00
📝
This commit is contained in:
parent
3a33fab091
commit
8f6b8b2e43
@ -2290,6 +2290,7 @@ impl ToPoint for usize {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use cmp::Ordering;
|
||||||
use gpui::App;
|
use gpui::App;
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::{cell::RefCell, rc::Rc};
|
use std::{cell::RefCell, rc::Rc};
|
||||||
|
@ -722,6 +722,7 @@ impl BufferView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn update_selections(&self, mut selections: Vec<Selection>, ctx: &mut ViewContext<Self>) {
|
fn update_selections(&self, mut selections: Vec<Selection>, ctx: &mut ViewContext<Self>) {
|
||||||
|
// Merge overlapping selections.
|
||||||
let buffer = self.buffer.as_ref(ctx);
|
let buffer = self.buffer.as_ref(ctx);
|
||||||
let mut i = 1;
|
let mut i = 1;
|
||||||
while i < selections.len() {
|
while i < selections.len() {
|
||||||
|
Loading…
Reference in New Issue
Block a user