Format all selections even if they are cursors (#22933)

Michael Sloan created

Closes #22816

Release Notes:

- Format selections now also applies to cursors.

Change summary

crates/editor/src/editor.rs | 1 -
1 file changed, 1 deletion(-)

Detailed changes

crates/editor/src/editor.rs 🔗

@@ -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(