diff options
Diffstat (limited to 'src/text/rich.rs')
| -rw-r--r-- | src/text/rich.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/text/rich.rs b/src/text/rich.rs index 4a7549f..4c6319b 100644 --- a/src/text/rich.rs +++ b/src/text/rich.rs @@ -446,10 +446,7 @@ where span.padding.top, ), bounds.size() - + Size::new( - span.padding.x(), - span.padding.y(), - ), + + Size::new(span.padding.x(), span.padding.y()), ); renderer.fill_quad( @@ -524,8 +521,8 @@ where let bounds = layout.bounds(); let (rows, mut start, mut end) = state.selection_end_points(); - start = start + core::Vector::new(bounds.x, bounds.y); - end = end + core::Vector::new(bounds.x, bounds.y); + start += core::Vector::new(bounds.x, bounds.y); + end += core::Vector::new(bounds.x, bounds.y); let line_height = self .line_height |
