mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Fix the tab completion for paths starting with ./
This commit is contained in:
parent
b8f7eaad40
commit
dab3246db9
1 changed files with 3 additions and 1 deletions
|
|
@ -345,7 +345,9 @@ GList *filename_complete(const char *path, const char *default_path)
|
|||
(dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
|
||||
continue; /* skip . and .. */
|
||||
|
||||
if (basename[0] != '.')
|
||||
/* Skip the dotfiles unless the user explicitly asked us
|
||||
* to do so. Basename might be './', beware of that */
|
||||
if (basename[0] != '.' || basename[1] == '\0')
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue