fix(highlight): account for multiple rows in highlight testing assertions

This commit is contained in:
Will Lillis 2025-04-06 08:31:02 -04:00
parent 521da2b0a7
commit 71941d8bda

View file

@ -172,7 +172,7 @@ pub fn iterate_assertions(
let mut j = i;
while let (false, Some(highlight)) = (passed, highlights.get(j)) {
end_column = position.column + length - 1;
if highlight.0.column > end_column {
if highlight.0.row >= position.row && highlight.0.column > end_column {
break 'highlight_loop;
}