Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 1, 2024
1 parent 292fa0d commit e4c4073
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn report(
let file = file_lines_cache.get_or_insert_with(|| cm.lookup_char_pos(css_span.lo));

let lo = if let Some(loc) = &err.loc {
Some(file.file.lines[(loc.line + 1) as usize] + BytePos(loc.column))
Some(file.file.analyze().lines[(loc.line + 1) as usize] + BytePos(loc.column))
} else {
None
};
Expand Down

0 comments on commit e4c4073

Please sign in to comment.