Skip to content

Commit

Permalink
Merge branch 'fix-cursor' into things
Browse files Browse the repository at this point in the history
  • Loading branch information
Vulpesx committed May 10, 2024
2 parents e7ee73c + 27b67a8 commit 6c25c70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/spinner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6c25c70

Please sign in to comment.