mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04: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:
parent
6910ca4d25
commit
f40e9513b2
@ -592,6 +592,16 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
|
|||||||
return;
|
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? */
|
/* command completion? */
|
||||||
cmdchars = settings_get_str("cmdchars");
|
cmdchars = settings_get_str("cmdchars");
|
||||||
if (*word != '\0' && *linestart == '\0' && strchr(cmdchars, *word)) {
|
if (*word != '\0' && *linestart == '\0' && strchr(cmdchars, *word)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user