1 parent
9255408000
commit
42ef82b2c8
2 files changed
+10
-2
No files matched your search
@@ -139,7 +139,11 @@ func parseStylesGNU(env string) styleMap {
|
|||||||
log.Printf("invalid $LS_COLORS entry: %s", entry)
|
log.Printf("invalid $LS_COLORS entry: %s", entry)
|
||||||
return styles
|
return styles
|
||||||
}
|
}
|
||||||
key, val := filepath.Clean(replaceTilde(pair[0])), pair[1]
|
key, val := pair[0], pair[1]
|
||||||
|
key = replaceTilde(key)
|
||||||
|
if filepath.IsAbs(key) {
|
||||||
|
key = filepath.Clean(key)
|
||||||
|
}
|
||||||
styles[key] = applyAnsiCodes(val, tcell.StyleDefault)
|
styles[key] = applyAnsiCodes(val, tcell.StyleDefault)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ func parseIconsEnv(env string) iconMap {
|
|||||||
log.Printf("invalid $LF_ICONS entry: %s", entry)
|
log.Printf("invalid $LF_ICONS entry: %s", entry)
|
||||||
return icons
|
return icons
|
||||||
}
|
}
|
||||||
key, val := filepath.Clean(replaceTilde(pair[0])), pair[1]
|
key, val := pair[0], pair[1]
|
||||||
|
key = replaceTilde(key)
|
||||||
|
if filepath.IsAbs(key) {
|
||||||
|
key = filepath.Clean(key)
|
||||||
|
}
|
||||||
icons[key] = val
|
icons[key] = val
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user