fix: completions on files/folders starting with a dot not having it

pull/128/head
TorchedSammy 2022-03-17 19:40:51 -04:00
parent b0ece71de3
commit 4da82e872c
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func matchPath(path, pref string) ([]string, error) {
for _, match := range matches {
name := filepath.Base(match)
p := filepath.Base(pref)
if pref == "" {
if pref == "" || pref == "./" {
p = ""
}
name = strings.TrimPrefix(name, p)