From 0eadeab8c7c3f1ddc794661782ebbe19ddf5311e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 22 Nov 2021 11:13:22 +0900 Subject: dap: Remove the prompt line parameter, use insert_str instead --- helix-term/src/ui/prompt.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-term/src/ui/prompt.rs') diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 00ffdccf..e90b0772 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -61,11 +61,10 @@ impl Prompt { history_register: Option, mut completion_fn: impl FnMut(&str) -> Vec + 'static, callback_fn: impl FnMut(&mut Context, &str, PromptEvent) + 'static, - line: Option, ) -> Self { Self { prompt, - line: line.unwrap_or_default(), + line: String::new(), cursor: 0, completion: completion_fn(""), selection: None, -- cgit v1.2.3-70-g09d2