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:
parent
0bc084770c
commit
892afcb9e6
@ -204,6 +204,8 @@ GList *filename_complete(const char *path)
|
|||||||
if (dirp == NULL) return NULL;
|
if (dirp == NULL) return NULL;
|
||||||
|
|
||||||
dir = g_dirname(path);
|
dir = g_dirname(path);
|
||||||
|
if (*dir == G_DIR_SEPARATOR && dir[1] == '\0')
|
||||||
|
*dir = '\0'; /* completing file in root directory */
|
||||||
basename = g_basename(path);
|
basename = g_basename(path);
|
||||||
len = strlen(basename);
|
len = strlen(basename);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user