summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helix-term/src/application.rs3
-rw-r--r--helix-term/src/compositor.rs2
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)>;