From 896b84b353a4facf125a1eadb95953a98543381d Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 23 Feb 2013 11:36:34 +0100 Subject: [PATCH] Don't save commands from config file and default config in history. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index ee44c43..65f6a15 100644 --- a/src/main.c +++ b/src/main.c @@ -189,6 +189,9 @@ static void vp_inputbox_activate_cb(GtkEntry *entry, gpointer user_data) * for the command */ vp_set_mode(VP_MODE_NORMAL, FALSE); } + /* save the command in history */ + history_append((text + 1)); + break; } } @@ -304,9 +307,6 @@ static gboolean vp_process_input(const char* input) success = command_run(token[0], token[1] ? token[1] : NULL); g_strfreev(token); - /* save the command in history */ - history_append(command); - return success; } -- 2.20.1