From 6084e22844463cd2b4780e7272c89f93fcad8699 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Fri, 12 Jan 2024 12:06:31 -0500 Subject: [PATCH] Fix panic with many participants (#4035) Fix bug from first test Release Notes: - (Added|Fixed|Improved) ... ([#](https://github.com/zed-industries/community/issues/)). --- crates/ui/src/styles/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/styles/color.rs b/crates/ui/src/styles/color.rs index 434183e5606135cdcb7e420c023c1108d0aa0a42..1c9fd789d958a1d0b886ab23e62232fc219589d3 100644 --- a/crates/ui/src/styles/color.rs +++ b/crates/ui/src/styles/color.rs @@ -37,7 +37,7 @@ impl Color { Color::Info => cx.theme().status().info, Color::Placeholder => cx.theme().colors().text_placeholder, Color::Accent => cx.theme().colors().text_accent, - Color::Player(i) => cx.theme().styles.player.0[i.clone() as usize].cursor, + Color::Player(i) => cx.theme().styles.player.color_for_participant(*i).cursor, Color::Error => cx.theme().status().error, Color::Selected => cx.theme().colors().text_accent, Color::Success => cx.theme().status().success,