diff options
author | Blaž Hrastnik | 2021-07-24 08:48:45 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-07-26 02:19:33 +0000 |
commit | 63e54e30a74bb0d1d782877ddbbcf95f2817d061 (patch) | |
tree | 39be3b1e809d4c85c6a7bd132c240e854de985bf /helix-term/src/ui/mod.rs | |
parent | 29cefa1be860e38a11347f0798159e0f4ddfe173 (diff) |
Implement in-memory prompt history
Implementation is similar to kakoune: we store the entries into
a register.
Diffstat (limited to 'helix-term/src/ui/mod.rs')
-rw-r--r-- | helix-term/src/ui/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 288d3d2e..9e71cfe7 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -36,6 +36,7 @@ pub fn regex_prompt( Prompt::new( prompt, + None, |_input: &str| Vec::new(), // this is fine because Vec::new() doesn't allocate move |cx: &mut crate::compositor::Context, input: &str, event: PromptEvent| { match event { |