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

(cherry picked from commit 71941d8bda)
This commit is contained in:
Will Lillis 2025-04-06 08:31:02 -04:00 committed by Christian Clason
parent ff8bf05def
commit 14d930d131

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;
}