aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testCellBuffer.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-02-09 21:25:16 +1100
committerNeil <nyamatongwe@gmail.com>2024-02-09 21:25:16 +1100
commit8df2193739e8e37b0ab4c0c31a0e1741351c801f (patch)
treedf8ec6858a499c3318d51df3c90d6f04f82a6d4b /test/unit/testCellBuffer.cxx
parentc57d85c5a8872d192c11f7020ef7c13fbefff206 (diff)
downloadscintilla-mirror-8df2193739e8e37b0ab4c0c31a0e1741351c801f.tar.gz
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.
Diffstat (limited to 'test/unit/testCellBuffer.cxx')
-rw-r--r--test/unit/testCellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
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());