diff options
author | Anhad Singh <62820092+Andy-Python-Programmer@users.noreply.github.com> | 2023-05-24 06:35:58 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 20:35:58 +0000 |
commit | cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7 (patch) | |
tree | e8c5315bb620e6d4e1564dfd6825303b498a3d6d /alacritty_terminal/src/event_loop.rs | |
parent | f0379f2da751e81ba05bbf65ecb5e59590f39be4 (diff) | |
download | alacritty-cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7.tar.gz alacritty-cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7.zip |
Switch to VTE's built-in ansi feature
Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'alacritty_terminal/src/event_loop.rs')
-rw-r--r-- | alacritty_terminal/src/event_loop.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs index 34169801..61dc69bc 100644 --- a/alacritty_terminal/src/event_loop.rs +++ b/alacritty_terminal/src/event_loop.rs @@ -333,8 +333,9 @@ where 'event_loop: loop { // Wakeup the event loop when a synchronized update timeout was reached. - let sync_timeout = state.parser.sync_timeout(); - let timeout = sync_timeout.map(|st| st.saturating_duration_since(Instant::now())); + let handler = state.parser.sync_timeout(); + let timeout = + handler.sync_timeout().map(|st| st.saturating_duration_since(Instant::now())); if let Err(err) = self.poll.poll(&mut events, timeout) { match err.kind() { |