Fix tests

This commit is contained in:
Jeremy Soller 2023-01-04 20:02:00 -07:00
parent 210ca61f13
commit 00bc4d1e88
4 changed files with 16 additions and 8 deletions

View file

@ -4,6 +4,7 @@ use unicode_segmentation::UnicodeSegmentation;
use crate::{
Action,
AttrsList,
Buffer,
Color,
Cursor,
@ -83,6 +84,10 @@ impl<'a> Edit<'a> for ViEditor<'a> {
self.editor.delete_selection()
}
fn insert_string(&mut self, data: &str, attrs_list: Option<AttrsList>) {
self.editor.insert_string(data, attrs_list);
}
fn action(&mut self, action: Action) {
let old_mode = self.mode;