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
5 changed files with 231 additions and 38 deletions
+5
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],