diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-11-10 18:16:22 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 18:16:22 +0400 |
commit | 5060f8eeb864e8c304fbad9588bdd882db942356 (patch) | |
tree | b615ded19e6ac545b495f716e2a22ecd903332af /alacritty_terminal/src/selection.rs | |
parent | 3ffd6c8f26f9788466b9ba95659b8de970a10f08 (diff) | |
download | alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.tar.gz alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.zip |
Remove `alacritty_config` from alacritty_terminal
There's no need to force alacritty's user configuration on
other users of the crate, thus provide the options actually used
by alacritty_terminal itself.
Diffstat (limited to 'alacritty_terminal/src/selection.rs')
-rw-r--r-- | alacritty_terminal/src/selection.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alacritty_terminal/src/selection.rs b/alacritty_terminal/src/selection.rs index 1536724c..31b7b309 100644 --- a/alacritty_terminal/src/selection.rs +++ b/alacritty_terminal/src/selection.rs @@ -9,11 +9,11 @@ use std::cmp::min; use std::mem; use std::ops::{Bound, Range, RangeBounds}; -use crate::ansi::CursorShape; use crate::grid::{Dimensions, GridCell, Indexed}; use crate::index::{Boundary, Column, Line, Point, Side}; use crate::term::cell::{Cell, Flags}; use crate::term::Term; +use crate::vte::ansi::CursorShape; /// A Point and side within that point. #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -395,14 +395,13 @@ impl Selection { mod tests { use super::*; - use crate::config::Config; use crate::index::{Column, Point, Side}; use crate::term::test::TermSize; - use crate::term::Term; + use crate::term::{Config, Term}; fn term(height: usize, width: usize) -> Term<()> { let size = TermSize::new(width, height); - Term::new(&Config::default(), &size, ()) + Term::new(Config::default(), &size, ()) } /// Test case of single cell selection. |