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:
Benjamin Sago 2017-05-01 16:53:51 +01:00
parent 5e0b9e0a10
commit 2d6d462439

View File

@ -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);
}
}
},