Fix splitting Styleds
This commit is contained in:
parent
26a8936cf5
commit
dfc10f9d09
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ impl Styled {
|
|||
let mut from = 0;
|
||||
for (style, until) in self.styles {
|
||||
if from < mid {
|
||||
left_styles.push((style, until.max(mid)));
|
||||
left_styles.push((style, until.min(mid)));
|
||||
}
|
||||
if mid < until {
|
||||
right_styles.push((style, until.saturating_sub(mid)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue