mirror of https://github.com/Hilbis/Hilbish
fix: completions on files/folders starting with a dot not having it
parent
b0ece71de3
commit
4da82e872c
|
@ -93,7 +93,7 @@ func matchPath(path, pref string) ([]string, error) {
|
||||||
for _, match := range matches {
|
for _, match := range matches {
|
||||||
name := filepath.Base(match)
|
name := filepath.Base(match)
|
||||||
p := filepath.Base(pref)
|
p := filepath.Base(pref)
|
||||||
if pref == "" {
|
if pref == "" || pref == "./" {
|
||||||
p = ""
|
p = ""
|
||||||
}
|
}
|
||||||
name = strings.TrimPrefix(name, p)
|
name = strings.TrimPrefix(name, p)
|
||||||
|
|
Loading…
Reference in New Issue