Merges from Irssi CVS.
[runtime.git] / apps / irssi / src / fe-common / core / completion.c
index f10fbb6dec0414866ecd35da3df8d0607e1eae9f..99046b9f3e073178ca084eb91c0cd860063eb0c4 100644 (file)
@@ -267,7 +267,8 @@ GList *filename_complete(const char *path, const char *default_path)
         GList *list;
        DIR *dirp;
        struct dirent *dp;
-       char *realpath, *dir, *basename, *name;
+       const char *basename;
+       char *realpath, *dir, *name;
        int len;
 
        g_return_val_if_fail(path != NULL, NULL);
@@ -744,6 +745,7 @@ void completion_init(void)
        signal_add_first("complete erase", (SIGNAL_FUNC) sig_complete_erase);
        signal_add("complete command set", (SIGNAL_FUNC) sig_complete_set);
        signal_add("complete command toggle", (SIGNAL_FUNC) sig_complete_toggle);
+       signal_add("complete command load", (SIGNAL_FUNC) sig_complete_filename);
        signal_add("complete command cat", (SIGNAL_FUNC) sig_complete_filename);
        signal_add("complete command save", (SIGNAL_FUNC) sig_complete_filename);
        signal_add("complete command reload", (SIGNAL_FUNC) sig_complete_filename);
@@ -762,6 +764,7 @@ void completion_deinit(void)
        signal_remove("complete erase", (SIGNAL_FUNC) sig_complete_erase);
        signal_remove("complete command set", (SIGNAL_FUNC) sig_complete_set);
        signal_remove("complete command toggle", (SIGNAL_FUNC) sig_complete_toggle);
+       signal_remove("complete command load", (SIGNAL_FUNC) sig_complete_filename);
        signal_remove("complete command cat", (SIGNAL_FUNC) sig_complete_filename);
        signal_remove("complete command save", (SIGNAL_FUNC) sig_complete_filename);
        signal_remove("complete command reload", (SIGNAL_FUNC) sig_complete_filename);