From 892afcb9e6e752212da97dbf3b35b955f6343981 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 25 Jun 2000 22:05:44 +0000 Subject: 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 --- src/fe-common/core/completion.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3