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 2025-01-09 18:28:49 -07:00 committed by GitHub
parent 0dd7ea4575
commit c9008fb8c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(