From 4293ad5122c7ab9d5f2b2e50db3c5959d507a06b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 16 Nov 2012 14:58:12 +0100 Subject: empty Scintilla undo buffer on line termination and after munging * also clear goto table after munging --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.cpp') 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(); -- cgit v1.2.3