aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/prompt.rs
diff options
context:
space:
mode:
authorJan Hrastnik2020-10-19 14:16:00 +0000
committerJan Hrastnik2020-10-19 14:16:00 +0000
commitae8ff9623efdf2a4267358d87d779b313c695689 (patch)
tree0b04dc107294214f0440ea5217251720dabbeb5d /helix-view/src/prompt.rs
parentbc2c652fe885c7e7953224268688a6d7b6dea80e (diff)
fix warnings
Diffstat (limited to 'helix-view/src/prompt.rs')
-rw-r--r--helix-view/src/prompt.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/helix-view/src/prompt.rs b/helix-view/src/prompt.rs
index a3feaeec..729533c5 100644
--- a/helix-view/src/prompt.rs
+++ b/helix-view/src/prompt.rs
@@ -1,5 +1,4 @@
-use crate::commands;
-use crate::{Editor, View};
+use crate::Editor;
use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
use std::string::String;
@@ -91,6 +90,12 @@ impl Prompt {
code: KeyCode::Enter,
..
} => (self.callback_fn)(editor, &self.line),
+ KeyEvent {
+ code: KeyCode::Tab, ..
+ } => {
+ let _completion = (self.completion_fn)(&self.line);
+ }
+
_ => (),
}
}