aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmdline.cpp1
-rw-r--r--main.cpp3
2 files changed, 4 insertions, 0 deletions
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();