mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Fix diffing dirs
This commit is contained in:
parent
2d18529d05
commit
b5c2d85837
1 changed files with 8 additions and 3 deletions
|
|
@ -253,6 +253,9 @@ func walk(base string, names *utils.Set[string], pmap map[string]string) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
if d.IsDir() {
|
||||
return nil
|
||||
}
|
||||
path, err = filepath.Abs(path)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -261,9 +264,11 @@ func walk(base string, names *utils.Set[string], pmap map[string]string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
path_name_map[path] = name
|
||||
names.Add(name)
|
||||
pmap[name] = path
|
||||
if name != "." {
|
||||
path_name_map[path] = name
|
||||
names.Add(name)
|
||||
pmap[name] = path
|
||||
}
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue