Don't save commands from config file and default config in history.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 23 Feb 2013 10:36:34 +0000 (11:36 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 23 Feb 2013 10:36:34 +0000 (11:36 +0100)
src/main.c

index ee44c43..65f6a15 100644 (file)
@@ -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;
 }