mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 11:23:10 +03:00
Fix panic for noop selecting join (#5579)
This commit is contained in:
parent
4d7082eb5c
commit
0e5159ceca
@ -3939,6 +3939,11 @@ fn join_selections_impl(cx: &mut Context, select_space: bool) {
|
||||
}
|
||||
}
|
||||
|
||||
// nothing to do, bail out early to avoid crashes later
|
||||
if changes.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
changes.sort_unstable_by_key(|(from, _to, _text)| *from);
|
||||
changes.dedup();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user