diff options
author | Blaž Hrastnik | 2022-11-09 13:17:14 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-11-09 13:17:14 +0000 |
commit | 758bace2210e83dacadd755c3f97bb62ad259a73 (patch) | |
tree | 508066764ce123775b92bd8bd25952786b9905cb /helix-term/src | |
parent | 264a455c18f765b04c31a613ccc336dd893c4cbe (diff) |
fix test compilation
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/application.rs | 3 | ||||
-rw-r--r-- | helix-term/src/compositor.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 433104dc..39a6532d 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -58,6 +58,9 @@ const LSP_DEADLINE: Duration = Duration::from_millis(16); #[cfg(not(feature = "integration"))] use tui::backend::CrosstermBackend; +#[cfg(feature = "integration")] +use tui::backend::TestBackend; + #[cfg(not(feature = "integration"))] type Terminal = tui::terminal::Terminal<CrosstermBackend<std::io::Stdout>>; diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index bbcd2181..9dad3620 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -4,8 +4,6 @@ use helix_core::Position; use helix_view::graphics::{CursorKind, Rect}; -#[cfg(feature = "integration")] -use tui::backend::TestBackend; use tui::buffer::Buffer as Surface; pub type Callback = Box<dyn FnOnce(&mut Compositor, &mut Context)>; |