Improve word wrapping

Now supports long trailing whitespace as well as tabs.
This commit is contained in:
Joscha 2022-07-04 18:56:52 +02:00
parent 9b0d80873f
commit 11b2211fad
5 changed files with 106 additions and 41 deletions

View file

@ -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;
}