diff options
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 5543d95..2e1ef9d 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -1491,9 +1491,12 @@ parse_command(const char *cmd, const char *param, GString *result) { send_event(COMMAND_EXECUTED, tmp->str, NULL); g_string_free(tmp, TRUE); } - - } else - send_event(COMMAND_ERROR, cmd, NULL); + } + else { + gchar *tmp = g_strdup_printf("%s %s", cmd, param?param:""); + send_event(COMMAND_ERROR, tmp, NULL); + g_free(tmp); + } } |