aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmdline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline.cpp')
-rw-r--r--cmdline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmdline.cpp b/cmdline.cpp
index 5c6c14b..e2103ac 100644
--- a/cmdline.cpp
+++ b/cmdline.cpp
@@ -56,7 +56,9 @@ cmdline_keypress(gchar key)
for (const gchar *p = insert; *p; p++) {
strcat(cmdline, (gchar[]){*p, '\0'});
- if (!macro_execute(cmdline)) {
+ try {
+ macro_execute(cmdline);
+ } catch (...) {
cmdline[old_cmdline_len] = '\0';
break;
}