From e030c4e574de9350024fba415450a0017fe48b56 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 24 Nov 2014 05:50:25 +0100 Subject: turn off Scintilla undo collection by default and fixed memleak * in batch mode, Scintilla undo actions are simply leaked memory * Since we have more than one Scintilla view now, we must empty the undo buffer of all scintilla views when a command line is committed ($$) --- src/interface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/interface.cpp') 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 void View::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); -- cgit v1.2.3