Add primitive auto indent

This commit is contained in:
Jeremy Soller 2023-11-16 08:59:43 -07:00
parent 1207fd6d80
commit 7d21045b2f
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
4 changed files with 50 additions and 1 deletions

View file

@ -272,6 +272,14 @@ impl<'a> Edit for ViEditor<'a> {
self.editor.set_select_opt(select_opt);
}
fn auto_indent(&self) -> bool {
self.editor.auto_indent()
}
fn set_auto_indent(&mut self, auto_indent: bool) {
self.editor.set_auto_indent(auto_indent);
}
fn tab_width(&self) -> u16 {
self.editor.tab_width()
}