diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-25 22:05:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-25 22:05:44 +0000 |
commit | 892afcb9e6e752212da97dbf3b35b955f6343981 (patch) | |
tree | 41e7f92c01408d76ad0226b9351f3d48c6eb2b55 | |
parent | 0bc084770c02c3b838f3260ad57db1ca4b52630c (diff) | |
download | irssi-892afcb9e6e752212da97dbf3b35b955f6343981.zip |
completing files in root directory put extra / character at the start
of the line
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@376 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/completion.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c index e545451b..4a182ccd 100644 --- a/src/fe-common/core/completion.c +++ b/src/fe-common/core/completion.c @@ -204,6 +204,8 @@ GList *filename_complete(const char *path) if (dirp == NULL) return NULL; dir = g_dirname(path); + if (*dir == G_DIR_SEPARATOR && dir[1] == '\0') + *dir = '\0'; /* completing file in root directory */ basename = g_basename(path); len = strlen(basename); |