Sync selection between syntax tree view and editor
This commit is contained in:
parent
086cfe57c5
commit
e969e3b028
3 changed files with 169 additions and 105 deletions
|
@ -7102,7 +7102,7 @@ impl Editor {
|
|||
|
||||
let mut new_selections_by_buffer = HashMap::default();
|
||||
for selection in editor.selections.all::<usize>(cx) {
|
||||
for (buffer, mut range) in
|
||||
for (buffer, mut range, _) in
|
||||
buffer.range_to_buffer_ranges(selection.start..selection.end, cx)
|
||||
{
|
||||
if selection.reversed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue