mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
📝
This commit is contained in:
parent
3a33fab091
commit
8f6b8b2e43
@ -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};
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user