aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmdline.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-19 22:40:31 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-20 06:07:33 +0100
commitf0f420be3d80366a54598f6742ef73114651f3c4 (patch)
tree52566b5c493fe18b22d28a32214d21d9b8152960 /cmdline.cpp
parent6bf314fa5193872e26e3eaabe222ee1e2a823c08 (diff)
downloadsciteco-f0f420be3d80366a54598f6742ef73114651f3c4.tar.gz
errors when label cannot be found at end of macro invocation
* on the command line the line terminating <ESC> is not accepted when a label was not found
Diffstat (limited to 'cmdline.cpp')
-rw-r--r--cmdline.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmdline.cpp b/cmdline.cpp
index d8e71ac..5d6700f 100644
--- a/cmdline.cpp
+++ b/cmdline.cpp
@@ -129,6 +129,13 @@ process_edit_cmd(gchar key)
case '\x1B':
if (cmdline && cmdline[cmdline_len - 1] == '\x1B') {
+ if (Goto::skip_label) {
+ interface.msg(Interface::MSG_ERROR,
+ "Label \"%s\" not found",
+ Goto::skip_label);
+ break;
+ }
+
if (quit_requested) {
/* FIXME */
exit(EXIT_SUCCESS);