Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
boxdot committed Nov 6, 2023
1 parent e188dba commit 2c20488
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use clap::Parser;
use crossterm::{
event::{
DisableMouseCapture, EnableMouseCapture, Event as CEvent, EventStream, KeyCode, KeyEvent,
KeyModifiers, MouseButton, MouseEvent, MouseEventKind, KeyEventKind,
KeyEventKind, KeyModifiers, MouseButton, MouseEvent, MouseEventKind,
},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
Expand Down Expand Up @@ -298,7 +298,12 @@ async fn run_single_threaded(relink: bool) -> anyhow::Result<()> {
}
_ => {}
},
Some(Event::Input(event @ KeyEvent { kind: KeyEventKind::Press, .. })) => match event.code {
Some(Event::Input(
event @ KeyEvent {
kind: KeyEventKind::Press,
..
},
)) => match event.code {
KeyCode::F(1u8) => {
// Toggle help panel
app.toggle_help();
Expand Down Expand Up @@ -395,7 +400,7 @@ async fn run_single_threaded(relink: bool) -> anyhow::Result<()> {
}
_ => app.on_key(event).await?,
},
Some(Event::Input(..)) => {},
Some(Event::Input(..)) => {}
Some(Event::Paste(content)) => {
let multi_line_state = app.is_multiline_input;
app.is_multiline_input = true;
Expand Down

0 comments on commit 2c20488

Please sign in to comment.