Fix neovim tests with angle brackets
This commit is contained in:
parent
3cf98c4fae
commit
b495669c86
9 changed files with 684 additions and 81 deletions
|
@ -110,7 +110,12 @@ impl NeovimConnection {
|
|||
// Sends a keystroke to the neovim process.
|
||||
#[cfg(feature = "neovim")]
|
||||
pub async fn send_keystroke(&mut self, keystroke_text: &str) {
|
||||
let keystroke = Keystroke::parse(keystroke_text).unwrap();
|
||||
let mut keystroke = Keystroke::parse(keystroke_text).unwrap();
|
||||
|
||||
if keystroke.key == "<" {
|
||||
keystroke.key = "lt".to_string()
|
||||
}
|
||||
|
||||
let special = keystroke.shift
|
||||
|| keystroke.ctrl
|
||||
|| keystroke.alt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue