Skip to content

Commit

Permalink
Fmt pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Mroik committed Feb 20, 2024
1 parent e48815d commit 1cf0e5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/commands/fzf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ pub fn fzf_multi(
fzf_impl(context, backend, items, args)
}

fn fzf_impl(context: &mut AppContext, backend: &mut AppBackend, items: Vec<String>, args: Vec<String>) -> AppResult<String> {
fn fzf_impl(
context: &mut AppContext,
backend: &mut AppBackend,
items: Vec<String>,
args: Vec<String>,
) -> AppResult<String> {
backend.terminal_drop();

let mut cmd = Command::new("fzf");
Expand Down
4 changes: 3 additions & 1 deletion src/ui/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ impl Screen {
fn new(mouse_support: bool) -> io::Result<Self> {
let stdout = io::stdout().into_raw_mode()?;
if mouse_support {
Ok(Self::WithMouse(MouseTerminal::from(stdout.into_alternate_screen().unwrap())))
Ok(Self::WithMouse(MouseTerminal::from(
stdout.into_alternate_screen().unwrap(),
)))
} else {
Ok(Self::WithoutMouse(stdout.into_alternate_screen().unwrap()))
}
Expand Down

0 comments on commit 1cf0e5a

Please sign in to comment.