From cffff885bb38d395da8adeb2c2fe141c5f69e573 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sun, 11 Oct 2026 02:20:00 +0000 Subject: [PATCH] Integration: GREP lookbehind overlay test passes the drop-cap end (#425) next's overlays() takes the drop cap's end as a fifth argument; the test from #316 calls it with 0, like the other overlay tests. --- crates/compose/src/overlay.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compose/src/overlay.rs b/crates/compose/src/overlay.rs index 8df12adad..d65460949 100644 --- a/crates/compose/src/overlay.rs +++ b/crates/compose/src/overlay.rs @@ -129,7 +129,7 @@ mod tests { fn grep_style_with_lookbehind() { // Polish one-letter words kept with the next one; the space before is not styled. let text = "Ala i kot w domu.\n".to_string(); - let o = overlays(&text, 0..text.len(), &[], &[GrepStyle { style: "nobreak".into(), pattern: r"(?<=\s)[aiouwzAIOUWZ]\s".into() }]); + let o = overlays(&text, 0..text.len(), &[], &[GrepStyle { style: "nobreak".into(), pattern: r"(?<=\s)[aiouwzAIOUWZ]\s".into() }], 0); let got: Vec<&str> = o.iter().map(|(r, _)| &text[r.clone()]).collect(); assert_eq!(got, ["i ", "w "]); }