Merge pull request #1311 from zed-industries/fix-visual-paste

Fix visual paste
This commit is contained in:
Keith Simmons 2022-07-08 16:54:10 -07:00 committed by GitHub
commit 667d031ec8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 231 additions and 38 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],