Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/display_list/from_snippet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn format_header(
} = item
{
if annotation.range.0 >= range.0 && annotation.range.0 <= range.1 {
col = annotation.range.0 - range.0;
col = annotation.range.0 - range.0 + 1;
break;
}
row += 1;
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/no-color/multiline_annotation.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> src/format.rs:51:5
--> src/format.rs:51:6
|
51 | ) -> Option<String> {
| -------------- expected `std::option::Option<std::string::String>` because of return type
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/no-color/multiline_annotation2.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0027]: pattern does not mention fields `lineno`, `content`
--> src/display_list.rs:139:31
--> src/display_list.rs:139:32
|
139 | if let DisplayLine::Source {
| ________________________________^
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/no-color/simple.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: expected one of `.`, `;`, `?`, or an operator, found `for`
--> src/format_color.rs:171:8
--> src/format_color.rs:171:9
|
169 | })
| - expected one of `.`, `;`, `?`, or an operator here
Expand Down