diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 71abff13d..d1f423d1b 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -16,6 +16,7 @@ use helix_view::{ }; pub type Completion = (RangeFrom, Cow<'static, str>); +type PromptCharHandler = Box; pub struct Prompt { prompt: Cow<'static, str>, @@ -28,7 +29,7 @@ pub struct Prompt { completion_fn: Box Vec>, callback_fn: Box, pub doc_fn: Box Option>>, - next_char_handler: Option>, + next_char_handler: Option, } #[derive(Clone, Copy, PartialEq)]