reset current input in ReadQueryTerm

This commit is contained in:
Mark Thom
2020-05-11 15:29:28 -06:00
parent 4c0da691b8
commit c70b873397
3 changed files with 6 additions and 7 deletions

View File

@@ -42,11 +42,6 @@ pub mod readline {
}
impl ReadlineStream {
pub fn new(pending_input: String) -> Self {
let rl = Editor::<()>::new();
ReadlineStream { rl, pending_input: Cursor::new(pending_input) }
}
pub fn input_stream(pending_input: String) -> Stream {
let mut rl = Editor::<()>::new();
rl.bind_sequence(KeyPress::Tab, Cmd::Insert(1, "\t".to_string()));