1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

When completing words beginning with '/' or '~' chars, treat them as

filenames.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2841 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-06-06 19:22:16 +00:00 committed by cras
parent 6910ca4d25
commit f40e9513b2

View File

@ -592,6 +592,16 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
return;
}
if (*linestart != '\0' && (*word == '/' || *word == '~')) {
/* quite likely filename completion */
*list = g_list_concat(*list, filename_complete(word, NULL));
if (*list != NULL) {
*want_space = FALSE;
signal_stop();
return;
}
}
/* command completion? */
cmdchars = settings_get_str("cmdchars");
if (*word != '\0' && *linestart == '\0' && strchr(cmdchars, *word)) {