From bd9123e7df4436049866a361e2751b98056c25f1 Mon Sep 17 00:00:00 2001 From: Niklas Claesson Date: Mon, 8 Jan 2018 14:07:30 +0100 Subject: Fix indexed color setting regression Commit 2920cbe7103f03a45080bfb7610bd7f481f36361 introduced a regression because of a typo in the chunk slice index for the `parse_rgb_color` call. This fixes this issue by resetting it to the state it was before the faulty commit. --- src/ansi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ansi.rs') diff --git a/src/ansi.rs b/src/ansi.rs index 22e84a21..3bcfff88 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -771,7 +771,7 @@ impl<'a, H, W> vte::Perform for Performer<'a, H, W> if params.len() > 1 && params.len() % 2 != 0 { for chunk in params[1..].chunks(2) { let index = parse_number(chunk[0]); - let color = parse_rgb_color(chunk[0]); + let color = parse_rgb_color(chunk[1]); if let (Some(i), Some(c)) = (index, color) { self.handler.set_color(i as usize, c); return; -- cgit v1.2.3-54-g00ecf