vim: ? to search backwards, and /<enter> to repeat search

This commit is contained in:
Conrad Irwin 2023-07-06 13:21:01 -06:00
parent d70f415e8e
commit 6cf13c62d1
5 changed files with 106 additions and 21 deletions

View file

@ -90,6 +90,7 @@ impl<'a> VimTestContext<'a> {
self.cx.set_state(text)
}
#[track_caller]
pub fn assert_state(&mut self, text: &str, mode: Mode) {
self.assert_editor_state(text);
assert_eq!(self.mode(), mode, "{}", self.assertion_context());