Skip to content

Commit

Permalink
ci: Fix ci failure due to broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
AMythicDev committed Mar 22, 2023
1 parent 870c0d0 commit 7f35576
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ eros.",

#[test]
fn esc_end_in_match() {
let orig = format!("this {NONE}is a te{ESC}st");
let orig = format!("this {ESC}is a te{NONE}st");
let res = highlight_line_matches(&orig, &Regex::new("test").unwrap());
assert_eq!(
res.0,
Expand Down
11 changes: 6 additions & 5 deletions src/input/event_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ where
}

pub fn remove_resize_event(&mut self) {
self.0.remove(&EventWrapper::ExactMatchEvent(Event::Resize(0, 0)));
self.0
.remove(&EventWrapper::ExactMatchEvent(Event::Resize(0, 0)));
}

}

// Key event Insertions functions
Expand All @@ -128,10 +128,10 @@ where

pub fn remove_key_events(&mut self, keys: &[&str]) {
for k in keys {
self.0.remove(&Event::Key(super::definitions::keydefs::parse_key_event(k)).into());
self.0
.remove(&Event::Key(super::definitions::keydefs::parse_key_event(k)).into());
}
}

}

// Mouse event insertions functions
Expand All @@ -155,7 +155,8 @@ where

pub fn remove_mouse_events(&mut self, keys: &[&str]) {
for k in keys {
self.0.remove(&Event::Mouse(super::definitions::mousedefs::parse_mouse_event(k)).into());
self.0
.remove(&Event::Mouse(super::definitions::mousedefs::parse_mouse_event(k)).into());
}
}
}
Expand Down

0 comments on commit 7f35576

Please sign in to comment.