From c9008fb8c1841166a56ce625e24f1c37a027a1f9 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Thu, 9 Jan 2025 18:28:49 -0700 Subject: [PATCH] Format all selections even if they are cursors (#22933) Closes #22816 Release Notes: - Format selections now also applies to cursors. --- crates/editor/src/editor.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 4a9aa79e30..11017df833 100644 --- a/crates/editor/src/editor.rs +++ b/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(