From 0d01c262c0ed23ef950530c743b023e89ef4a821 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 8 Nov 2012 02:21:36 +0100 Subject: support line termination ($$) as immediate editing command + some fixes * separate function for immediate editing command processing * undo.clear() to remove and free all undo tokens without executing them * goto_table_clear() to remove and free all goto table entries --- goto.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'goto.cpp') diff --git a/goto.cpp b/goto.cpp index 3785076..f4d9497 100644 --- a/goto.cpp +++ b/goto.cpp @@ -160,6 +160,12 @@ public: static GotoTable table; +void +goto_table_clear(void) +{ + table.clear(); +} + StateLabel::StateLabel() : State() { transitions['\0'] = this; -- cgit v1.2.3