diff options
author | Blaž Hrastnik | 2021-03-18 05:48:42 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-18 05:53:29 +0000 |
commit | 8ba1e15d296fd3350332d8fa372c4c7703024a67 (patch) | |
tree | 31e7efbb2ab5a78f5521c0577f0471df77529e98 /helix-term/src/ui/prompt.rs | |
parent | 2b64f49f2c5da800ceae43359c91b9708e953d18 (diff) |
Expose doc.syntax() via accessor.
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r-- | helix-term/src/ui/prompt.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 700bc8a0..19885c02 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -7,11 +7,11 @@ use std::borrow::Cow; use std::string::String; pub struct Prompt { - pub prompt: String, + prompt: String, pub line: String, - pub cursor: usize, - pub completion: Vec<Cow<'static, str>>, - pub completion_selection_index: Option<usize>, + cursor: usize, + completion: Vec<Cow<'static, str>>, + completion_selection_index: Option<usize>, completion_fn: Box<dyn FnMut(&str) -> Vec<Cow<'static, str>>>, callback_fn: Box<dyn FnMut(&mut Editor, &str, PromptEvent)>, } |