From 8df2193739e8e37b0ab4c0c31a0e1741351c801f Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 9 Feb 2024 21:25:16 +1100 Subject: Avoid overhead of extra start actions that delimited user operations. Now relies on mayCoalesce flag to indicate that a user operation is complete when false. --- test/unit/testCellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/testCellBuffer.cxx b/test/unit/testCellBuffer.cxx index a0ddceef6..f3308574e 100644 --- a/test/unit/testCellBuffer.cxx +++ b/test/unit/testCellBuffer.cxx @@ -590,7 +590,7 @@ TEST_CASE("UndoHistory") { uh.AppendAction(ActionType::insert, 0, "ab", 2, startSequence, true); REQUIRE(uh.TentativeActive()); // The first TentativeCommit didn't seal off the first action so it is still undoable - REQUIRE(uh.TentativeSteps() == 3); + REQUIRE(uh.TentativeSteps() == 2); REQUIRE(uh.CanUndo()); TentativeUndo(uh); REQUIRE(!uh.TentativeActive()); -- cgit v1.2.3