2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 03:33:22 +00:00

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

This commit is contained in:
TorchedSammy 2022-03-17 19:40:51 -04:00
parent b0ece71de3
commit 4da82e872c
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

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)