zed/crates/editor
Antonio Scandurra 7a81983c62 Fix surrounding text with bracket pairs with multiple selections
This was probably a regression that was introduced with the new batched
`Buffer::edit` API and was caused by providing selection ranges in a
non-ordered fashion (we were passing all the starts first and then all the
ends).

With this commit we are adding a unit test to verify the behavior of
`Editor::surround_with_bracket_pair` and changing the order in which
we pass edit ranges to respect the selection order.
2022-06-15 11:48:21 +02:00
..
src Fix surrounding text with bracket pairs with multiple selections 2022-06-15 11:48:21 +02:00
Cargo.toml test and build fixes 2022-06-09 17:03:45 -07:00