aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
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 /src/CellBuffer.h
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 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index ecd646570..16ed14d6c 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -28,7 +28,7 @@ class ChangeHistory;
*/
class ILineVector;
-enum class ActionType : unsigned char { insert, remove, start, container };
+enum class ActionType : unsigned char { insert, remove, container };
/**
* Actions are used to return the information required to report one undo/redo step.
@@ -164,10 +164,10 @@ public:
bool SetUndoCollection(bool collectUndo) noexcept;
bool IsCollectingUndo() const noexcept;
- void BeginUndoAction();
- void EndUndoAction();
+ void BeginUndoAction() noexcept;
+ void EndUndoAction() noexcept;
void AddUndoAction(Sci::Position token, bool mayCoalesce);
- void DeleteUndoHistory();
+ void DeleteUndoHistory() noexcept;
/// To perform an undo, StartUndo is called to retrieve the number of steps, then UndoStep is
/// called that many times. Similarly for redo.