2
3
spegling av https://github.com/sammy-ette/Hilbish synced 2025-08-10 02:52:03 +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
förälder b0ece71de3
incheckning 4da82e872c
Signerad av: sammyette
GPG-nyckel ID: 904FC49417B44DCD

Visa fil

@ -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)