diff options
author | Dmitry Sharshakov | 2021-08-31 18:29:11 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-08-31 18:29:11 +0000 |
commit | 5b20f6020a4acd74bc545fc27c473f0198354e5d (patch) | |
tree | e826e8ec1b9fefd3d9f979e30c6176f4a7302bf2 /helix-term/src/ui/prompt.rs | |
parent | 6265e196b700b363244961ed2957d9eef5460c34 (diff) | |
parent | a3bd80a6fa4f07b0fa581eae416376763ba94345 (diff) |
Merge remote-tracking branch 'origin/master' into debug
Contains type fix on helix-term/src/ui/editor.rs:752:13
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r-- | helix-term/src/ui/prompt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 7197adea..1d512ad2 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -15,7 +15,7 @@ use helix_view::{ pub type Completion = (RangeFrom<usize>, Cow<'static, str>); pub struct Prompt { - prompt: String, + prompt: Cow<'static, str>, pub line: String, cursor: usize, completion: Vec<Completion>, @@ -55,7 +55,7 @@ pub enum Movement { impl Prompt { pub fn new( - prompt: String, + prompt: Cow<'static, str>, history_register: Option<char>, mut completion_fn: impl FnMut(&str) -> Vec<Completion> + 'static, callback_fn: impl FnMut(&mut Context, &str, PromptEvent) + 'static, |