fix: allow closing mismatched tags while in artifacts

This commit is contained in:
Tobias Schmitz 2025-08-01 14:24:23 +02:00
parent d92e54ac63
commit df6a4ba7f4
No known key found for this signature in database

View File

@ -294,11 +294,10 @@ pub fn handle_end(
return Ok(()); return Ok(());
} }
// FIXME: Overlapping tags in artifacts will break the close mechanism. if let Some((l, _)) = gc.tags.in_artifact
if let Some((l, _)) = gc.tags.in_artifact { && l == loc
if l == loc { {
pop_artifact(gc, surface); pop_artifact(gc, surface);
}
return Ok(()); return Ok(());
} }