diff options
| author | tv <tv@krebsco.de> | 2026-11-13 19:46:22 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-13 19:46:22 +0000 |
| commit | e8a6110722b3d9cb6611631eeafedddd4f9b4cec (patch) | |
| tree | 2cd69bc734bdf5f80513727dbead067658bc8638 /src/document | |
| parent | 4c1ae401bb71cfa0a6edaa033470ab27cce80106 (diff) | |
changes: type next to a mark within the text
`no_mark` typed at 0 to 4 into a text of three characters: splicing at 4
is past its end. It types at 0 to 3.
Diffstat (limited to 'src/document')
| -rw-r--r-- | src/document/changes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document/changes.rs b/src/document/changes.rs index 51f9f6f..800ea19 100644 --- a/src/document/changes.rs +++ b/src/document/changes.rs @@ -1419,7 +1419,7 @@ mod tests { // "a". let mut held = ours.fork(); held.apply_changes([marked.clone()]).unwrap(); - for at in 0..=4 { + for at in 0..=3 { let typed = on(&held, |doc| doc.splice_text(&text, at, 0, "x").unwrap()); assert_eq!( Written::default().check(&held, &typed, &typed.decode()), |
