aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.h')
-rw-r--r--src/interface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interface.h b/src/interface.h
index a883a5f..4b5de7f 100644
--- a/src/interface.h
+++ b/src/interface.h
@@ -131,6 +131,13 @@ public:
undo.push(new UndoTokenSetRepresentations(impl()));
}
+ inline void
+ set_scintilla_undo(bool state)
+ {
+ ssm(SCI_EMPTYUNDOBUFFER);
+ ssm(SCI_SETUNDOCOLLECTION, state);
+ }
+
protected:
void setup(void);
};