summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-07-12 16:35:43 +0200
committerLemonBoy <thatlemon@gmail.com>2016-07-12 16:35:43 +0200
commitdab3246db91a6f17a7da192c10f9b369fa057ef5 (patch)
tree4f1eb688cb0f9ec8218e86973df90fc4365b8d09 /src/fe-common
parentb8f7eaad40d66b653fa1ff2ed366954e6e8d9732 (diff)
downloadirssi-dab3246db91a6f17a7da192c10f9b369fa057ef5.zip
Fix the tab completion for paths starting with ./
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/completion.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c
index 46fd9db7..76dfbb79 100644
--- a/src/fe-common/core/completion.c
+++ b/src/fe-common/core/completion.c
@@ -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;
}