Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-tui/src/backend/test.rs')
-rw-r--r--helix-tui/src/backend/test.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/helix-tui/src/backend/test.rs b/helix-tui/src/backend/test.rs
index b048cefc..771cc309 100644
--- a/helix-tui/src/backend/test.rs
+++ b/helix-tui/src/backend/test.rs
@@ -107,7 +107,7 @@ impl TestBackend {
}
impl Backend for TestBackend {
- fn claim(&mut self) -> Result<(), io::Error> {
+ fn claim(&mut self, _config: Config) -> Result<(), io::Error> {
Ok(())
}
@@ -115,7 +115,11 @@ impl Backend for TestBackend {
Ok(())
}
- fn restore(&mut self) -> Result<(), io::Error> {
+ fn restore(&mut self, _config: Config) -> Result<(), io::Error> {
+ Ok(())
+ }
+
+ fn force_restore() -> Result<(), io::Error> {
Ok(())
}
@@ -139,6 +143,10 @@ impl Backend for TestBackend {
Ok(())
}
+ fn get_cursor(&mut self) -> Result<(u16, u16), io::Error> {
+ Ok(self.pos)
+ }
+
fn set_cursor(&mut self, x: u16, y: u16) -> Result<(), io::Error> {
self.pos = (x, y);
Ok(())
@@ -156,12 +164,4 @@ impl Backend for TestBackend {
fn flush(&mut self) -> Result<(), io::Error> {
Ok(())
}
-
- fn supports_true_color(&self) -> bool {
- false
- }
-
- fn get_theme_mode(&self) -> Option<helix_view::theme::Mode> {
- None
- }
}