From: Daniel Carl Date: Sat, 23 Feb 2013 10:36:34 +0000 (+0100) Subject: Don't save commands from config file and default config in history. X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=896b84b353a4facf125a1eadb95953a98543381d;p=vimb.git Don't save commands from config file and default config in history. --- 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; }