aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index 409a8749d..7a3eabaeb 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -88,8 +88,6 @@ public:
void Grab(Action *source);
};
-enum undoCollectionType { undoCollectNone, undoCollectAutoStart, undoCollectManualStart };
-
class UndoHistory {
Action *actions;
int lenActions;
@@ -141,7 +139,7 @@ private:
char *part2body;
bool readOnly;
- undoCollectionType collectingUndo;
+ bool collectingUndo;
UndoHistory uh;
LineVector lv;
@@ -199,7 +197,7 @@ public:
void BasicInsertString(int position, char *s, int insertLength);
void BasicDeleteChars(int position, int deleteLength);
- undoCollectionType SetUndoCollection(undoCollectionType collectUndo);
+ bool SetUndoCollection(bool collectUndo);
bool IsCollectingUndo();
void BeginUndoAction();
void EndUndoAction();