mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-12 16:51:40 +00:00
Remember to escape characters in link targets
This was a bug introduced by 28fce347ff
— it should have updated both places it does this in the function, rather than just one.
This commit is contained in:
parent
5e0b9e0a10
commit
2d6d462439
@ -61,7 +61,10 @@ impl<'a, 'dir> FileName<'a, 'dir> {
|
||||
}
|
||||
|
||||
if !target.name.is_empty() {
|
||||
bits.push(FileName::new(&target, self.colours).style().paint(target.name));
|
||||
let target = FileName::new(&target, self.colours);
|
||||
for bit in target.coloured_file_name() {
|
||||
bits.push(bit);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user