Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jan 15, 2025
1 parent fadec55 commit 4a7092a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions frontends/rioterm/src/screen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
pub mod hint;
pub mod touch;

use crate::bindings::kitty_keyboard::build_key_sequence;
use crate::bindings::{
Action as Act, BindingKey, BindingMode, FontSizeAction, MouseBinding, SearchAction,
ViAction,
};
use crate::bindings::kitty_keyboard::build_key_sequence;
#[cfg(target_os = "macos")]
use crate::constants::{DEADZONE_END_Y, DEADZONE_START_Y};
use crate::context::grid::{ContextDimension, Delta};
Expand Down Expand Up @@ -539,8 +539,7 @@ impl Screen<'_> {

#[inline]
pub fn process_key_event(&mut self, key: &rio_window::event::KeyEvent) {
if self.context_manager.current().ime.preedit().is_some()
{
if self.context_manager.current().ime.preedit().is_some() {
return;
}

Expand Down Expand Up @@ -570,7 +569,7 @@ impl Screen<'_> {
if !mode.contains(Mode::REPORT_ALL_KEYS_AS_ESC) =>
{
return
},
}
_ => build_key_sequence(key, mods, mode),
};

Expand Down
5 changes: 3 additions & 2 deletions rio-backend/src/crosswords/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,13 @@ impl<T: event::EventListener> Crosswords<T> {
match self.inline_search_left(point, self.semantic_escape_chars()) {
// If we found a match, reverse for at least one cell, skipping over wide cell spacers.
Ok(point) => {
let wide_spacer = Flags::WIDE_CHAR_SPACER | Flags::LEADING_WIDE_CHAR_SPACER;
let wide_spacer =
Flags::WIDE_CHAR_SPACER | Flags::LEADING_WIDE_CHAR_SPACER;
self.grid
.iter_from(point)
.find(|cell| !cell.flags.intersects(wide_spacer))
.map_or(point, |cell| cell.pos)
},
}
Err(point) => point,
}
}
Expand Down

0 comments on commit 4a7092a

Please sign in to comment.