mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue