aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2024-03-12 12:15:00 +0100
committerJosh Rahm <rahm@google.com>2024-08-14 15:41:13 -0600
commit84a9d7446eba3e912ad3b7efd0000ff8ea5845a7 (patch)
treec64747f68509f395fa8d2ef39ce24f40ab273891 /alacritty_terminal/src
parent082a348e7df9b35f4d574256f7a2856676421288 (diff)
downloadr-alacritty-84a9d7446eba3e912ad3b7efd0000ff8ea5845a7.tar.gz
r-alacritty-84a9d7446eba3e912ad3b7efd0000ff8ea5845a7.tar.bz2
r-alacritty-84a9d7446eba3e912ad3b7efd0000ff8ea5845a7.zip
Fix hint `Select` action for hyperlink escape
This fixes an issue where the `Select` action for hyperlink escape text would select the entire line, instead of selecting only the hyperlink itself. It also changes the way hyperlinks with the same ID are highlighted, removing the restriction of being on consecutive lines and instead highlighting all visible cells that correspond to the matching hyperlink. Closes #7766.
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r--alacritty_terminal/src/event_loop.rs1
-rw-r--r--alacritty_terminal/src/grid/storage.rs2
-rw-r--r--alacritty_terminal/src/term/mod.rs2
-rw-r--r--alacritty_terminal/src/tty/unix.rs2
4 files changed, 2 insertions, 5 deletions
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs
index 929c642d..62dd7440 100644
--- a/alacritty_terminal/src/event_loop.rs
+++ b/alacritty_terminal/src/event_loop.rs
@@ -5,7 +5,6 @@ use std::collections::VecDeque;
use std::fmt::{self, Display, Formatter};
use std::fs::File;
use std::io::{self, ErrorKind, Read, Write};
-use std::marker::Send;
use std::num::NonZeroUsize;
use std::sync::mpsc::{self, Receiver, Sender, TryRecvError};
use std::sync::Arc;
diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs
index d5709d14..0a2be43b 100644
--- a/alacritty_terminal/src/grid/storage.rs
+++ b/alacritty_terminal/src/grid/storage.rs
@@ -1,4 +1,4 @@
-use std::cmp::{max, PartialEq};
+use std::cmp::max;
use std::mem;
use std::mem::MaybeUninit;
use std::ops::{Index, IndexMut};
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index 2ed6d7c9..f17f7462 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -2389,10 +2389,8 @@ pub mod test {
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
- use unicode_width::UnicodeWidthChar;
use crate::event::VoidListener;
- use crate::index::Column;
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct TermSize {
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs
index 8ce04191..455abbd2 100644
--- a/alacritty_terminal/src/tty/unix.rs
+++ b/alacritty_terminal/src/tty/unix.rs
@@ -11,7 +11,7 @@ use std::process::{Child, Command, Stdio};
use std::sync::Arc;
use std::{env, ptr};
-use libc::{self, c_int, TIOCSCTTY};
+use libc::{c_int, TIOCSCTTY};
use log::error;
use polling::{Event, PollMode, Poller};
use rustix_openpty::openpty;