Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sholderbach committed Nov 8, 2023
1 parent 01261c8 commit 33b54a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/terminal_extensions/bracketed_paste.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crossterm::{execute, event};
use crossterm::{event, execute};

/// Helper managing proper setup and teardown of bracketed paste mode
///
Expand Down Expand Up @@ -34,4 +34,3 @@ impl Drop for BracketedPasteGuard {
}
}
}

12 changes: 6 additions & 6 deletions src/terminal_extensions/kitty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ impl KittyProtocolGuard {
}
pub fn enter(&mut self) {
if self.enabled && !self.active {
let _ = execute!(
std::io::stdout(),
event::PushKeyboardEnhancementFlags(
event::KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES
)
);
let _ = execute!(
std::io::stdout(),
event::PushKeyboardEnhancementFlags(
event::KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES
)
);

self.active = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/terminal_extensions/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub(crate) mod kitty;
pub(crate) mod bracketed_paste;
pub(crate) mod kitty;

0 comments on commit 33b54a6

Please sign in to comment.