From 0a37c87273ceb347b684e737bcd4b5caa6e2fcfd Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Thu, 20 Dec 2012 14:41:16 +0100 Subject: [PATCH] Fixed duplicate mode setting in command_input function. --- src/command.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/command.c b/src/command.c index 53531c3..453a132 100644 --- a/src/command.c +++ b/src/command.c @@ -125,21 +125,20 @@ gboolean command_open(const Arg* arg) gboolean command_input(const Arg* arg) { const gchar* url; - gchar* input = NULL; /* add current url if requested */ if (VP_INPUT_CURRENT_URI == arg->i && (url = webkit_web_view_get_uri(vp.gui.webview)) ) { - /* append the crrent url to the input message */ - input = g_strconcat(arg->s, url, NULL); + /* append the current url to the input message */ + gchar* input = g_strconcat(arg->s, url, NULL); command_write_input(input); g_free(input); } else { command_write_input(arg->s); } - return vp_set_mode(VP_MODE_COMMAND, FALSE); + return TRUE; } gboolean command_close(const Arg* arg) -- 2.20.1