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:
parent
b0ece71de3
commit
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user