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

@ -164,6 +164,12 @@ pub trait Edit {
/// Set the current selection position
fn set_select_opt(&mut self, select_opt: Option<Cursor>);
/// Get the current automatic indentation setting
fn auto_indent(&self) -> bool;
/// Enable or disable automatic indentation
fn set_auto_indent(&mut self, auto_indent: bool);
/// Get the current tab width
fn tab_width(&self) -> u16;