fix some warnings and merge errors
This commit is contained in:
parent
515c1ea123
commit
f90b693ed5
2 changed files with 7631 additions and 17 deletions
7630
Cargo.lock
generated
Normal file
7630
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -52,22 +52,6 @@ impl<'a> NeovimBackedTestContext<'a> {
|
||||||
self.exemptions.insert(initial_state, None);
|
self.exemptions.insert(initial_state, None);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn add_keybinding_exemption<const COUNT: usize>(
|
|
||||||
&mut self,
|
|
||||||
keybinding: [&str; COUNT],
|
|
||||||
initial_state: &str,
|
|
||||||
) {
|
|
||||||
let initial_state = initial_state.to_string();
|
|
||||||
let exempted_keybindings = self
|
|
||||||
.exemptions
|
|
||||||
.entry(initial_state)
|
|
||||||
.or_insert(Some(Default::default()));
|
|
||||||
|
|
||||||
if let Some(exempted_bindings) = exempted_keybindings.as_mut() {
|
|
||||||
exempted_bindings.insert(format!("{keybinding:?}"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn simulate_shared_keystroke(&mut self, keystroke_text: &str) {
|
pub async fn simulate_shared_keystroke(&mut self, keystroke_text: &str) {
|
||||||
let keystroke = Keystroke::parse(keystroke_text).unwrap();
|
let keystroke = Keystroke::parse(keystroke_text).unwrap();
|
||||||
|
|
||||||
|
@ -118,7 +102,7 @@ impl<'a> NeovimBackedTestContext<'a> {
|
||||||
.get_current_buf()
|
.get_current_buf()
|
||||||
.await
|
.await
|
||||||
.expect("Could not get neovim buffer");
|
.expect("Could not get neovim buffer");
|
||||||
let mut lines = self
|
let lines = self
|
||||||
.buffer_text()
|
.buffer_text()
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.map(|line| line.to_string())
|
.map(|line| line.to_string())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue