mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
term: Change signature of Constraint::from_env
Return `None` if there's no terminal.
This commit is contained in:
@@ -372,6 +372,6 @@ mod test {
|
||||
let mut hi = Highlighter::default();
|
||||
let pretty = diff.pretty(&mut hi, &(), &repo);
|
||||
|
||||
pretty.write(Constraint::from_env().maximize());
|
||||
pretty.write(Constraint::from_env().unwrap_or_default());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user