mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
parent
c281f93a63
commit
d2f2f642c1
@ -99,7 +99,11 @@ impl<'a> Iterator for LinesIterator<'a> {
|
|||||||
let content = &content[..next];
|
let content = &content[..next];
|
||||||
|
|
||||||
let allowed_width = if self.show_spaces {
|
let allowed_width = if self.show_spaces {
|
||||||
self.width - 1
|
if self.width < 1 {
|
||||||
|
0
|
||||||
|
} else {
|
||||||
|
self.width - 1
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.width
|
self.width
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user