Fix bugs in code folding
This commit is contained in:
parent
e3061066c9
commit
637e8ada42
7 changed files with 82 additions and 27 deletions
|
@ -538,7 +538,7 @@ impl ProjectSearchView {
|
|||
|
||||
let range_to_select = match_ranges[new_index].clone();
|
||||
self.results_editor.update(cx, |editor, cx| {
|
||||
editor.unfold_ranges([range_to_select.clone()], false, cx);
|
||||
editor.unfold_ranges([range_to_select.clone()], false, true, cx);
|
||||
editor.change_selections(Some(Autoscroll::fit()), cx, |s| {
|
||||
s.select_ranges([range_to_select])
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue