From 286895b1a01a6fd57b9fd5044efad711e9c2216b Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 18 Jul 2014 23:37:23 +1000 Subject: Added the tentative undo feature. This is useful for IMEs that want to display and manipulate a character being composed, but may then commit or remove it leaving no history in undo of the intermediate forms. --- src/Document.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index a59f192a9..0f2985f89 100644 --- a/src/Document.h +++ b/src/Document.h @@ -303,6 +303,12 @@ public: void AddUndoAction(int token, bool mayCoalesce) { cb.AddUndoAction(token, mayCoalesce); } void SetSavePoint(); bool IsSavePoint() const { return cb.IsSavePoint(); } + + void TentativeStart() { cb.TentativeStart(); } + void TentativeCommit() { cb.TentativeCommit(); } + void TentativeUndo(); + bool TentativeActive() { return cb.TentativeActive(); } + const char * SCI_METHOD BufferPointer() { return cb.BufferPointer(); } const char *RangePointer(int position, int rangeLength) { return cb.RangePointer(position, rangeLength); } int GapPosition() const { return cb.GapPosition(); } -- cgit v1.2.3