From 8ab406d3fd51620a1ded910bc89fc02a2bcb838a Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 9 Jan 2025 10:02:20 +0000 Subject: Bump VTE to 0.14.0 Since this is a breaking change, it also bumps the alacritty_terminal development version to 0.25.0-dev. --- alacritty_terminal/src/event_loop.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'alacritty_terminal/src') diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs index 62dd7440..2b78f853 100644 --- a/alacritty_terminal/src/event_loop.rs +++ b/alacritty_terminal/src/event_loop.rs @@ -17,8 +17,8 @@ use polling::{Event as PollingEvent, Events, PollMode}; use crate::event::{self, Event, EventListener, WindowSize}; use crate::sync::FairMutex; use crate::term::Term; -use crate::vte::ansi; use crate::{thread, tty}; +use vte::ansi; /// Max bytes to read from the PTY before forced terminal synchronization. pub(crate) const READ_BUFFER_SIZE: usize = 0x10_0000; @@ -151,9 +151,7 @@ where } // Parse the incoming bytes. - for byte in &buf[..unprocessed] { - state.parser.advance(&mut **terminal, *byte); - } + state.parser.advance(&mut **terminal, &buf[..unprocessed]); processed += unprocessed; unprocessed = 0; -- cgit