summaryrefslogtreecommitdiff
path: root/helix-view/src/prompt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/prompt.rs')
-rw-r--r--helix-view/src/prompt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/prompt.rs b/helix-view/src/prompt.rs
index 8cfb9fde..b352a386 100644
--- a/helix-view/src/prompt.rs
+++ b/helix-view/src/prompt.rs
@@ -7,13 +7,13 @@ pub struct Prompt {
pub buffer: String,
pub cursor_loc: usize,
completion_fn: Box<dyn FnMut(&str) -> Option<Vec<&str>>>,
- callback_fn: Box<dyn Fn(&str)>,
+ callback_fn: Box<dyn FnMut(&str)>,
}
impl Prompt {
pub fn new(
completion_fn: impl FnMut(&str) -> Option<Vec<&str>> + 'static,
- callback_fn: impl Fn(&str) + 'static,
+ callback_fn: impl FnMut(&str) + 'static,
) -> Prompt {
Prompt {
buffer: String::from(""),