Edit: use u16 for tab_width
This commit is contained in:
parent
8024cbe504
commit
1207fd6d80
4 changed files with 14 additions and 12 deletions
|
|
@ -165,10 +165,10 @@ pub trait Edit {
|
|||
fn set_select_opt(&mut self, select_opt: Option<Cursor>);
|
||||
|
||||
/// Get the current tab width
|
||||
fn tab_width(&self) -> usize;
|
||||
fn tab_width(&self) -> u16;
|
||||
|
||||
/// Set the current tab width. A `tab_width` of 0 is not allowed, and will be ignored
|
||||
fn set_tab_width(&mut self, tab_width: usize);
|
||||
fn set_tab_width(&mut self, tab_width: u16);
|
||||
|
||||
/// Shape lines until scroll, after adjusting scroll if the cursor moved
|
||||
fn shape_as_needed(&mut self, font_system: &mut FontSystem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue