aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-16 14:58:12 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-16 14:58:12 +0100
commit4293ad5122c7ab9d5f2b2e50db3c5959d507a06b (patch)
treea4cdda0f066c92acc4f7aa8e9b09cb4244ee628e /main.cpp
parentf6ff327f0b7b50b74328e448ce862f7212dcae23 (diff)
downloadsciteco-4293ad5122c7ab9d5f2b2e50db3c5959d507a06b.tar.gz
empty Scintilla undo buffer on line termination and after munging
* also clear goto table after munging
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index a6919c5..e412f9d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -13,6 +13,7 @@
#include "sciteco.h"
#include "interface.h"
#include "parser.h"
+#include "goto.h"
#include "qbuffers.h"
#include "undo.h"
@@ -156,6 +157,8 @@ main(int argc, char **argv)
}
g_free(mung_file);
+ interface.ssm(SCI_EMPTYUNDOBUFFER);
+ goto_table_clear();
undo.enabled = true;
interface.event_loop();