Fix Prompt::handle_event compilation
This commit is contained in:
parent
4c9f144dac
commit
7c34f20dca
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ impl Component for Prompt {
|
|||
fn handle_event(&mut self, event: &Event, cx: &mut Context) -> EventResult {
|
||||
let event = match event {
|
||||
Event::Paste(data) => {
|
||||
self.insert_str(data);
|
||||
self.insert_str(data, cx.editor);
|
||||
self.recalculate_completion(cx.editor);
|
||||
return EventResult::Consumed(None);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue