aboutsummaryrefslogtreecommitdiff
path: root/helix-tui/src/backend/test.rs
diff options
context:
space:
mode:
authorMichael Davis2023-04-21 03:53:27 +0000
committerGitHub2023-04-21 03:53:27 +0000
commitee7413a3fd723015843e569924abbfbf32b56182 (patch)
tree2452a41519061ccff8084daf8d6acaad8a32e69e /helix-tui/src/backend/test.rs
parent78088ac18510754c9aac27c162e4d81890a11a82 (diff)
tui: Allow toggling mouse capture at runtime (#6675)
This picks up changes to the `editor.mouse` option at runtime - either through `:set-option` or `:config-reload`. When the value changes, we tell the terminal to enable or disable mouse capture sequences.
Diffstat (limited to 'helix-tui/src/backend/test.rs')
-rw-r--r--helix-tui/src/backend/test.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-tui/src/backend/test.rs b/helix-tui/src/backend/test.rs
index ff133ff3..771cc309 100644
--- a/helix-tui/src/backend/test.rs
+++ b/helix-tui/src/backend/test.rs
@@ -111,6 +111,10 @@ impl Backend for TestBackend {
Ok(())
}
+ fn reconfigure(&mut self, _config: Config) -> Result<(), io::Error> {
+ Ok(())
+ }
+
fn restore(&mut self, _config: Config) -> Result<(), io::Error> {
Ok(())
}