mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Clear selections on other excerpted buffers when setting active selections
This commit is contained in:
parent
94e9c7fd5b
commit
67f672d0cc
1 changed files with 8 additions and 0 deletions
|
@ -496,6 +496,14 @@ impl MultiBuffer {
|
|||
}
|
||||
}
|
||||
|
||||
for (buffer_id, buffer_state) in self.buffers.borrow().iter() {
|
||||
if !selections_by_buffer.contains_key(buffer_id) {
|
||||
buffer_state
|
||||
.buffer
|
||||
.update(cx, |buffer, cx| buffer.remove_active_selections(cx));
|
||||
}
|
||||
}
|
||||
|
||||
for (buffer_id, mut selections) in selections_by_buffer {
|
||||
self.buffers.borrow()[&buffer_id]
|
||||
.buffer
|
||||
|
|
Loading…
Reference in a new issue