aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/picker.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-07-24 08:48:45 +0000
committerBlaž Hrastnik2021-07-26 02:19:33 +0000
commit63e54e30a74bb0d1d782877ddbbcf95f2817d061 (patch)
tree39be3b1e809d4c85c6a7bd132c240e854de985bf /helix-term/src/ui/picker.rs
parent29cefa1be860e38a11347f0798159e0f4ddfe173 (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/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index 733be2fc..0b67cd9c 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -43,6 +43,7 @@ impl<T> Picker<T> {
) -> Self {
let prompt = Prompt::new(
"".to_string(),
+ None,
|_pattern: &str| Vec::new(),
|_editor: &mut Context, _pattern: &str, _event: PromptEvent| {
//