@@ -984,7 +984,7 @@ impl HumanEmitter {
984
984
// 4 | }
985
985
// |
986
986
for pos in 0 ..=line_len {
987
- draw_col_separator ( buffer, line_offset + pos + 1 , width_offset - 2 ) ;
987
+ draw_col_separator_no_space ( buffer, line_offset + pos + 1 , width_offset - 2 ) ;
988
988
}
989
989
990
990
// Write the horizontal lines for multiline annotations
@@ -2260,13 +2260,23 @@ impl HumanEmitter {
2260
2260
buffer. puts ( * row_num, max_line_num_len + 1 , "+ " , Style :: Addition ) ;
2261
2261
}
2262
2262
[ ] => {
2263
- draw_col_separator ( buffer, * row_num, max_line_num_len + 1 ) ;
2263
+ draw_col_separator_no_space ( buffer, * row_num, max_line_num_len + 1 ) ;
2264
2264
}
2265
2265
_ => {
2266
2266
buffer. puts ( * row_num, max_line_num_len + 1 , "~ " , Style :: Addition ) ;
2267
2267
}
2268
2268
}
2269
- buffer. append ( * row_num, & normalize_whitespace ( line_to_add) , Style :: NoStyle ) ;
2269
+ // LL | line_to_add
2270
+ // ++^^^
2271
+ // | |
2272
+ // | magic `3`
2273
+ // `max_line_num_len`
2274
+ buffer. puts (
2275
+ * row_num,
2276
+ max_line_num_len + 3 ,
2277
+ & normalize_whitespace ( line_to_add) ,
2278
+ Style :: NoStyle ,
2279
+ ) ;
2270
2280
} else if let DisplaySuggestion :: Add = show_code_change {
2271
2281
buffer. puts ( * row_num, 0 , & self . maybe_anonymized ( line_num) , Style :: LineNumber ) ;
2272
2282
buffer. puts ( * row_num, max_line_num_len + 1 , "+ " , Style :: Addition ) ;
0 commit comments