Fix neovim tests with angle brackets
This commit is contained in:
parent
3cf98c4fae
commit
b495669c86
9 changed files with 684 additions and 81 deletions
|
@ -34,8 +34,6 @@ pub enum ExemptionFeatures {
|
|||
AroundSentenceStartingBetweenIncludesWrongWhitespace,
|
||||
// Non empty selection with text objects in visual mode
|
||||
NonEmptyVisualTextObjects,
|
||||
// Neovim freezes up for some reason with angle brackets
|
||||
AngleBracketsFreezeNeovim,
|
||||
// Sentence Doesn't backtrack when its at the end of the file
|
||||
SentenceAfterPunctuationAtEndOfFile,
|
||||
}
|
||||
|
|
|
@ -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