Fix indexed color setting regression

Commit 2920cbe710 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.
This commit is contained in:
Niklas Claesson 2018-01-08 14:07:30 +01:00 committed by Christian Duerr
parent cc07624e99
commit bd9123e7df
1 changed files with 1 additions and 1 deletions

View File

@ -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;