Skip to content

Commit

Permalink
Slim down symlink arrow
Browse files Browse the repository at this point in the history
Fixes #74. There's one argument for changing the arrow, and none against!
  • Loading branch information
ogham committed Aug 3, 2015
1 parent 21ee2fb commit ebbac61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ fn symlink_filename(file: &File, colours: &Colours) -> String {
match file.link_target() {
Ok(target) => format!("{} {} {}",
file_colour(colours, file).paint(&file.name),
colours.punctuation.paint("=>"),
colours.punctuation.paint("->"),
ANSIStrings(&[ colours.symlink_path.paint(&target.path_prefix()),
file_colour(colours, &target).paint(&target.name) ])),

Err(filename) => format!("{} {} {}",
file_colour(colours, file).paint(&file.name),
colours.broken_arrow.paint("=>"),
colours.broken_arrow.paint("->"),
colours.broken_filename.paint(&filename)),
}
}

0 comments on commit ebbac61

Please sign in to comment.