mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 08:54:04 +00:00
Autoscroll when folding an arbitrary range
This commit is contained in:
parent
8bbaa0bd34
commit
806c09bf11
1 changed files with 2 additions and 3 deletions
|
@ -1952,9 +1952,8 @@ impl BufferView {
|
|||
.selections(ctx.as_ref())
|
||||
.iter()
|
||||
.map(|s| s.range(buffer).sorted())
|
||||
.collect::<Vec<_>>();
|
||||
self.display_map.fold(ranges, ctx.as_ref()).unwrap();
|
||||
ctx.notify();
|
||||
.collect();
|
||||
self.fold_ranges(ranges, ctx);
|
||||
}
|
||||
|
||||
fn fold_ranges<T: ToOffset>(&mut self, ranges: Vec<Range<T>>, ctx: &mut ViewContext<Self>) {
|
||||
|
|
Loading…
Reference in a new issue