Improve word wrapping
Now supports long trailing whitespace as well as tabs.
This commit is contained in:
parent
9b0d80873f
commit
11b2211fad
5 changed files with 106 additions and 41 deletions
|
|
@ -59,6 +59,14 @@ impl Terminal {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn set_tab_width(&mut self, tab_width: u8) {
|
||||
self.frame.tab_width = tab_width;
|
||||
}
|
||||
|
||||
pub fn tab_width(&self) -> u8 {
|
||||
self.frame.tab_width
|
||||
}
|
||||
|
||||
pub fn set_measuring(&mut self, active: bool) {
|
||||
self.frame.widthdb.active = active;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue