Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--Cargo.lock1
-rw-r--r--helix-term/Cargo.toml1
-rw-r--r--helix-term/src/ui/picker.rs3
3 files changed, 5 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index c614cadf..57bdb235 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1467,6 +1467,7 @@ dependencies = [
"smallvec",
"tempfile",
"termini",
+ "thiserror",
"tokio",
"tokio-stream",
"toml",
diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml
index fb850f7c..c50165e9 100644
--- a/helix-term/Cargo.toml
+++ b/helix-term/Cargo.toml
@@ -56,6 +56,7 @@ ignore = "0.4"
pulldown-cmark = { version = "0.11", default-features = false }
# file type detection
content_inspector = "0.2.4"
+thiserror = "1.0"
# opening URLs
open = "5.2.0"
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index 4f94c617..7e053c4a 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -18,6 +18,7 @@ use futures_util::future::BoxFuture;
use helix_event::AsyncHook;
use nucleo::pattern::CaseMatching;
use nucleo::{Config, Nucleo, Utf32String};
+use thiserror::Error;
use tokio::sync::mpsc::Sender;
use tui::{
buffer::Buffer as Surface,
@@ -170,6 +171,8 @@ impl<I, D> Clone for Injector<I, D> {
}
}
+#[derive(Error, Debug)]
+#[error("picker has been shut down")]
pub struct InjectorShutdown;
impl<T, D> Injector<T, D> {