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:
Michael Sloan authored and GitHub committed 2025-01-10 01:28:49 +00:00
1 parent dea5b60cc4
commit fcee5f84b0
1 file changed
-1
-1
View File
@@ -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(