From a3f321a531554b51160f3fe7e6da1c269030f3b6 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 23 Nov 2022 13:02:00 -0600 Subject: Follow parent links when calculating changes since a revision The 'revisions' field on History can't be treated as linear: each Revision in the revisions Vec has a parent link and an optional child link. We can follow those to unroll the recent history. --- helix-term/tests/test/commands.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-term/tests') diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs index 01295704..95bd95b7 100644 --- a/helix-term/tests/test/commands.rs +++ b/helix-term/tests/test/commands.rs @@ -306,5 +306,8 @@ async fn test_undo_redo() -> anyhow::Result<()> { // * Jump forward to line 1. test(("#[|]#", "[kduU", "#[|]#")).await?; + // In this case we 'redo' manually to ensure that the transactions are composing correctly. + test(("#[|]#", "[u[u", "#[|]#")).await?; + Ok(()) } -- cgit v1.2.3-70-g09d2