mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Fix task color when tagged
This commit is contained in:
parent
77e91f205e
commit
7208d7879d
2 changed files with 47 additions and 41 deletions
|
@ -247,7 +247,7 @@ impl TConfig {
|
|||
fn get_rule_precedence_color() -> Vec<String> {
|
||||
let data = Self::get_config("rule.precedence.color");
|
||||
data.split(',')
|
||||
.map(|s| s.trim_end_matches('.'))
|
||||
.filter(|s| !s.ends_with('.'))
|
||||
.map(|s| s.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
}
|
||||
|
@ -313,5 +313,6 @@ mod tests {
|
|||
fn test_colors() {
|
||||
let tc = TConfig::default();
|
||||
dbg!(&tc.color["color.active"]);
|
||||
dbg!(&tc.rule_precedence_color);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue