vim: Fix linewise copy of last line with no trailing newline
Along the way, delete the VimBindingTestContext by updating the visual tests to no-longer need it.
This commit is contained in:
parent
26c3312049
commit
e4794e3134
7 changed files with 118 additions and 187 deletions
|
@ -8,8 +8,6 @@ use search::{BufferSearchBar, ProjectSearchBar};
|
|||
|
||||
use crate::{state::Operator, *};
|
||||
|
||||
use super::VimBindingTestContext;
|
||||
|
||||
pub struct VimTestContext<'a> {
|
||||
cx: EditorLspTestContext<'a>,
|
||||
}
|
||||
|
@ -126,14 +124,6 @@ impl<'a> VimTestContext<'a> {
|
|||
assert_eq!(self.mode(), mode_after, "{}", self.assertion_context());
|
||||
assert_eq!(self.active_operator(), None, "{}", self.assertion_context());
|
||||
}
|
||||
|
||||
pub fn binding<const COUNT: usize>(
|
||||
mut self,
|
||||
keystrokes: [&'static str; COUNT],
|
||||
) -> VimBindingTestContext<'a, COUNT> {
|
||||
let mode = self.mode();
|
||||
VimBindingTestContext::new(keystrokes, mode, mode, self)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Deref for VimTestContext<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue