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:
förälder
b0ece71de3
incheckning
4da82e872c
@ -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)
|
||||
|
Laddar…
x
Referens i nytt ärende
Block a user