1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2000-06-25 22:05:44 +00:00 committed by cras
parent 0bc084770c
commit 892afcb9e6

View File

@ -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);