Restore opened tabs and windows upon restart (#72)
This commit is contained in:
@@ -156,6 +156,10 @@ impl<'a> TextPrinter<'a> {
|
||||
pub fn push_str(&mut self, s: &'a str, style: Style) {
|
||||
let style = self.base_style.patch(style);
|
||||
|
||||
if self.width == 0 {
|
||||
return;
|
||||
}
|
||||
|
||||
for mut word in UnicodeSegmentation::split_word_bounds(s) {
|
||||
if let "\n" | "\r\n" = word {
|
||||
// Render embedded newlines as spaces.
|
||||
|
||||
Reference in New Issue
Block a user