Explorar o código

Remember to escape characters in link targets

This was a bug introduced by 28fce347ff7cb743a24c77d055279a240888c8ca — it should have updated both places it does this in the function, rather than just one.
Benjamin Sago %!s(int64=8) %!d(string=hai) anos
pai
achega
2d6d462439
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/output/file_name.rs

+ 4 - 1
src/output/file_name.rs

@@ -61,7 +61,10 @@ impl<'a, 'dir> FileName<'a, 'dir> {
                     }
                     }
 
 
                     if !target.name.is_empty() {
                     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);
+                        }
                     }
                     }
                 },
                 },