summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index dc4b034..b234bc5 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -619,6 +619,10 @@ int main(int argc, char **argv)
gtk_completion_line_last_history_item(GTK_COMPLETION_LINE(compline));
}
+ if(argc == 2 && argv[1]){
+ gtk_entry_set_text(GTK_ENTRY(compline), argv[1]);
+ }
+
gtk_box_pack_start(GTK_BOX(hbox), compline, TRUE, TRUE, 0);
int prefs_top = 80;