aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2022-09-09 12:30:58 +0200
committerGitHub <noreply@github.com>2022-09-09 12:30:58 +0200
commitd5764fb2254c4e3ed2af2a36ffc6f4acb5f0d37f (patch)
tree5113e7305a46c794c36517de99d4b445b75cdd29
parentdocs(changelog): tab-bar mouseclick fix (diff)
downloadsl0ppij-d5764fb2254c4e3ed2af2a36ffc6f4acb5f0d37f.tar.gz
sl0ppij-d5764fb2254c4e3ed2af2a36ffc6f4acb5f0d37f.tar.xz
sl0ppij-d5764fb2254c4e3ed2af2a36ffc6f4acb5f0d37f.zip
fix(ui): sort multiple ui cursors (#1719)
* fix(ui): stable-sort multiple ui cursors * style(clippy): make clippy happy
-rw-r--r--zellij-server/src/ui/pane_contents_and_ui.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/zellij-server/src/ui/pane_contents_and_ui.rs b/zellij-server/src/ui/pane_contents_and_ui.rs
index b0eae8e8..779a6909 100644
--- a/zellij-server/src/ui/pane_contents_and_ui.rs
+++ b/zellij-server/src/ui/pane_contents_and_ui.rs
@@ -26,11 +26,12 @@ impl<'a> PaneContentsAndUi<'a> {
multiple_users_exist_in_session: bool,
z_index: Option<usize>,
) -> Self {
- let focused_clients: Vec<ClientId> = active_panes
+ let mut focused_clients: Vec<ClientId> = active_panes
.iter()
.filter(|(_c_id, p_id)| **p_id == pane.pid())
.map(|(c_id, _p_id)| *c_id)
.collect();
+ focused_clients.sort_unstable();
PaneContentsAndUi {
pane,
output,