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 --- cmdline.cpp | 1 + main.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cmdline.cpp b/cmdline.cpp index 31badb5..5c6c14b 100644 --- a/cmdline.cpp +++ b/cmdline.cpp @@ -118,6 +118,7 @@ process_edit_cmd(gchar key) exit(EXIT_SUCCESS); } + interface.ssm(SCI_EMPTYUNDOBUFFER); undo.clear(); goto_table_clear(); 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