mirror of https://github.com/sharkdp/fd.git
Changing formatting
This commit is contained in:
parent
b97d5af9d4
commit
ba56d4e886
|
@ -104,7 +104,12 @@ fn write_entry_uncolorized(entry: Cow<str>, separator: &'static str) -> io::Resu
|
|||
// or cygwin.
|
||||
// Replace back slashes with forward slashes when running on cygwin.
|
||||
if let Some(_) = env::var_os("HOME") {
|
||||
write!(&mut io::stdout(), "{}{}", entry.replace("\\", "/"), separator)
|
||||
write!(
|
||||
&mut io::stdout(),
|
||||
"{}{}",
|
||||
entry.replace("\\", "/"),
|
||||
separator
|
||||
)
|
||||
} else {
|
||||
write!(&mut io::stdout(), "{}{}", entry, separator)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue