mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
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:
parent
cc07624e99
commit
bd9123e7df
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue