Add primitive auto indent
This commit is contained in:
parent
1207fd6d80
commit
7d21045b2f
4 changed files with 50 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue