summaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-16 16:10:58 +0100
committerBen S <ogham@bsago.me>2015-05-16 16:10:58 +0100
commitfcc864eb679a0fa044b4297fbb3ce5d0aaf46265 (patch)
treec57601200c75a0cfb21cfca9cc5461fd6248989a /src/output
parent1bb7a4e47e5428d9204c36d887add4a21923f75c (diff)
Add some more comments and spacings
Diffstat (limited to 'src/output')
-rw-r--r--src/output/details.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/output/details.rs b/src/output/details.rs
index 8455a07..dff41a4 100644
--- a/src/output/details.rs
+++ b/src/output/details.rs
@@ -48,6 +48,8 @@ pub struct Details {
/// Whether to show each file's extended attributes.
pub xattr: bool,
+ /// The colours to use to display information in the table, including the
+ /// colour of the tree view symbols.
pub colours: Colours,
}
@@ -130,6 +132,7 @@ struct Table {
}
impl Table {
+
/// Create a new, empty Table object, setting the caching fields to their
/// empty states.
fn with_options(colours: Colours, columns: Vec<Column>) -> Table {
@@ -320,7 +323,7 @@ impl Table {
};
let style = if self.users.get_current_uid() == user.0 { self.colours.users.user_you }
- else { self.colours.users.user_someone_else };
+ else { self.colours.users.user_someone_else };
Cell::paint(style, &*user_name)
}