incorporated run-time configfile selection using trap
This commit is contained in:
1 parent
dd24908816
commit
758108c925
6 files changed
+40
-12
No files matched your search
+3
-1
@@ -25,7 +25,9 @@ fn build_string(cfg: &Config, data: &mut Data) -> String {
|
||||
b.append(' ');
|
||||
} else {
|
||||
cutoff(&cfg.metadata_fields, cfg.break_character, &mut data.display_text);
|
||||
b.append(data.display_prefix.clone());
|
||||
if cfg.render_prefix {
|
||||
b.append(data.display_prefix.clone());
|
||||
}
|
||||
b.append(' ');
|
||||
b.append(format!(" %{{T{}}}", cfg.font_index));
|
||||
let mut idx = 0; let len = cfg.metadata_fields.len() as i32;
|
||||
|
||||