Format all selections even if they are cursors (#22933)
Closes #22816 Release Notes: - Format selections now also applies to cursors.
This commit is contained in:
@@ -10260,7 +10260,6 @@ impl Editor {
|
||||
.all_adjusted(cx)
|
||||
.into_iter()
|
||||
.map(|selection| selection.range())
|
||||
.filter(|s| !s.is_empty())
|
||||
.collect_vec();
|
||||
|
||||
Some(self.perform_format(
|
||||
|
||||
Reference in New Issue
Block a user