Fix bug with no hints

This commit is contained in:
Ferran Basora 2020-05-15 16:30:09 +00:00
parent d2f765bae8
commit 2bb8900e6b

View File

@ -151,6 +151,10 @@ impl<'a> View<'a> {
}
fn listen(&mut self, stdin: &mut dyn Read, stdout: &mut dyn Write) -> CaptureEvent {
if self.matches.is_empty() {
return CaptureEvent::Exit
}
let mut chosen = vec![];
let mut typed_hint: String = "".to_owned();
let longest_hint = self