File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,6 @@ impl Margin {
58
58
self . computed_left > 0
59
59
}
60
60
61
- pub ( crate ) fn was_cut_right ( & self , line_len : usize ) -> bool {
62
- let right =
63
- if self . computed_right == self . span_right || self . computed_right == self . label_right {
64
- // Account for the "..." padding given above. Otherwise we end up with code lines that
65
- // do fit but end in "..." as if they were trimmed.
66
- self . computed_right - ELLIPSIS_PASSING
67
- } else {
68
- self . computed_right
69
- } ;
70
- right < line_len && self . computed_left + self . term_width < line_len
71
- }
72
-
73
61
fn compute ( & mut self , max_line_len : usize ) {
74
62
// When there's a lot of whitespace (>20), we want to trim it as it is useless.
75
63
self . computed_left = if self . whitespace_left > LONG_WHITESPACE {
Original file line number Diff line number Diff line change @@ -2083,7 +2083,7 @@ impl Renderer {
2083
2083
ElementStyle :: Quotation ,
2084
2084
) ;
2085
2085
2086
- if margin . was_cut_right ( line_len) {
2086
+ if line_len > right {
2087
2087
// We have stripped some code/whitespace from the beginning, make it clear.
2088
2088
let mut char_taken = 0 ;
2089
2089
let mut width_taken_inner = 0 ;
You can’t perform that action at this time.
0 commit comments