aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index a726e01..fc46f53 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -55,6 +55,12 @@ template <class ViewImpl>
void
View<ViewImpl>::setup(void)
{
+ /*
+ * Start with or without undo collection,
+ * depending on undo.enabled.
+ */
+ ssm(SCI_SETUNDOCOLLECTION, undo.enabled);
+
ssm(SCI_SETFOCUS, TRUE);
ssm(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK);