Always mirror the leader's selections when following

This commit is contained in:
Max Brunsfeld 2022-03-21 21:47:24 -07:00
parent c8f36af823
commit 1728551282
5 changed files with 103 additions and 52 deletions

View file

@ -1568,7 +1568,7 @@ impl Editor {
#[cfg(any(test, feature = "test-support"))]
pub fn selected_ranges<D: TextDimension + Ord + Sub<D, Output = D>>(
&self,
cx: &mut MutableAppContext,
cx: &AppContext,
) -> Vec<Range<D>> {
self.local_selections::<D>(cx)
.iter()