mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +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 {
|
||||||
|
if self.width < 1 {
|
||||||
|
0
|
||||||
|
} else {
|
||||||
self.width - 1
|
self.width - 1
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.width
|
self.width
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user