diff options
author | Niklas Claesson <nicke.claesson@gmail.com> | 2018-01-08 14:07:30 +0100 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-01-08 13:07:30 +0000 |
commit | bd9123e7df4436049866a361e2751b98056c25f1 (patch) | |
tree | 01fea2c365bc9d268d6f62c4982cf33030b4a8f9 | |
parent | cc07624e99dfa9ba7d1c70bfc7018e63808b4ae1 (diff) | |
download | alacritty-bd9123e7df4436049866a361e2751b98056c25f1.tar.gz alacritty-bd9123e7df4436049866a361e2751b98056c25f1.zip |
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.
-rw-r--r-- | src/ansi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |