fix pasting at the end of the line in normal mode

This commit is contained in:
Keith Simmons 2022-07-08 10:57:02 -07:00
parent ed52f8a8a3
commit ee007f901a
4 changed files with 207 additions and 39 deletions

View file

@ -125,6 +125,11 @@ impl<'a> VimTestContext<'a> {
self.cx.set_state(text);
}
pub fn assert_state(&mut self, text: &str, mode: Mode) {
self.assert_editor_state(text);
assert_eq!(self.mode(), mode);
}
pub fn assert_binding<const COUNT: usize>(
&mut self,
keystrokes: [&str; COUNT],