From 4da82e872cb786e93171ec8f418ce0ee25e05c49 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Thu, 17 Mar 2022 19:40:51 -0400 Subject: [PATCH] fix: completions on files/folders starting with a dot not having it --- complete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complete.go b/complete.go index 301b051..bad22f1 100644 --- a/complete.go +++ b/complete.go @@ -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)