diff --git a/src/input.rs b/src/input.rs index 5d53f07..59c1182 100644 --- a/src/input.rs +++ b/src/input.rs @@ -164,6 +164,7 @@ impl<'a> Input<'a> { self.clear_err()?; self.validate()?; if self.err.is_none() { + self.term.show_cursor()?; return self.handle_submit(); } } diff --git a/src/spinner.rs b/src/spinner.rs index ee309a2..6a51469 100644 --- a/src/spinner.rs +++ b/src/spinner.rs @@ -110,13 +110,13 @@ impl<'a> Spinner<'a> { /// Set the style of the spinner pub fn style(mut self, style: &'a SpinnerStyle) -> Self { - self.style = &style; + self.style = style; self } /// Set the theme of the dialog pub fn theme(mut self, theme: &'a Theme) -> Self { - self.theme = &theme; + self.theme = theme; self }