summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index b7d4fb7..47741c2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -482,14 +482,14 @@ static void inputbox_activate_cb(GtkEntry *entry)
case '?':
a.i = *text == '/' ? VB_SEARCH_FORWARD : VB_SEARCH_BACKWARD;
a.s = (command + 1);
- command_search(&a);
history_add(HISTORY_SEARCH, command + 1);
+ command_search(&a);
break;
case ':':
completion_clean();
- command_run_string((command + 1));
history_add(HISTORY_COMMAND, command + 1);
+ command_run_string((command + 1));
break;
}