diff options
author | Dmitry Sharshakov | 2021-09-04 19:57:58 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-09-04 19:57:58 +0000 |
commit | 1befbd076c0d182d7b6d9a6198054551d5ba34da (patch) | |
tree | 83bb72291e171061fa9c77b93196789dc6261e0d /helix-term/src/ui/prompt.rs | |
parent | e36fc57fff8b7e13a8a7eec9eb5b188efc44371d (diff) |
Add command for editing breakpoint condition
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r-- | helix-term/src/ui/prompt.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 1d512ad2..56335fb3 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -59,10 +59,11 @@ impl Prompt { history_register: Option<char>, mut completion_fn: impl FnMut(&str) -> Vec<Completion> + 'static, callback_fn: impl FnMut(&mut Context, &str, PromptEvent) + 'static, + line: Option<String>, ) -> Self { Self { prompt, - line: String::new(), + line: line.unwrap_or_default(), cursor: 0, completion: completion_fn(""), selection: None, |