summaryrefslogtreecommitdiffstats
path: root/src/ansi/iterator.rs
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2021-01-27 11:51:11 -0500
committerGitHub <noreply@github.com>2021-01-27 11:51:11 -0500
commit0c5384be26d697766c25cae09cdd3f8140859454 (patch)
treeecb1abe823937cc626b985f90c3a39f20ca79dc0 /src/ansi/iterator.rs
parent6175a2d163c729ab7af389ccc4a22959046da2b8 (diff)
Bump vte from 0.9.0 to 0.10.0 (#486)
* Bump vte from 0.9.0 to 0.10.0 Bumps [vte](https://github.com/alacritty/vte) from 0.9.0 to 0.10.0. - [Release notes](https://github.com/alacritty/vte/releases) - [Changelog](https://github.com/alacritty/vte/blob/master/CHANGELOG.md) - [Commits](https://github.com/alacritty/vte/compare/v0.9.0...v0.10.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix vte update Thanks @ignatenkobrain Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Dan Davison <dandavison7@gmail.com>
Diffstat (limited to 'src/ansi/iterator.rs')
-rw-r--r--src/ansi/iterator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi/iterator.rs b/src/ansi/iterator.rs
index e8ce6deb..e5beb18a 100644
--- a/src/ansi/iterator.rs
+++ b/src/ansi/iterator.rs
@@ -261,7 +261,7 @@ fn ansi_term_style_from_sgr_parameters(params: &mut ParamsIter<'_>) -> ansi_term
}
// Based on https://github.com/alacritty/alacritty/blob/57c4ac9145a20fb1ae9a21102503458d3da06c7b/alacritty_terminal/src/ansi.rs#L1258
-fn parse_sgr_color(params: &mut dyn Iterator<Item = i64>) -> Option<ansi_term::Color> {
+fn parse_sgr_color(params: &mut dyn Iterator<Item = u16>) -> Option<ansi_term::Color> {
match params.next() {
Some(2) => {
let r = u8::try_from(params.next()?).ok()?;