mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Diagnostics
- Consolidated two debug lines into one, so that ViewTask::render now reports available width, and Context::getWidth does not.
This commit is contained in:
parent
9537a91e89
commit
85481e3e69
2 changed files with 3 additions and 6 deletions
|
@ -173,10 +173,11 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
|
||||||
|
|
||||||
// Calculate final column widths.
|
// Calculate final column widths.
|
||||||
int overage = _width - sum_minimal - all_extra;
|
int overage = _width - sum_minimal - all_extra;
|
||||||
context.debug (format ("ViewTask::render min={1} ideal={2} overage={3}",
|
context.debug (format ("ViewTask::render min={1} ideal={2} overage={3} width={4}",
|
||||||
sum_minimal + all_extra,
|
sum_minimal + all_extra,
|
||||||
sum_ideal + all_extra,
|
sum_ideal + all_extra,
|
||||||
overage));
|
overage,
|
||||||
|
_width));
|
||||||
|
|
||||||
std::vector <int> widths;
|
std::vector <int> widths;
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,6 @@ int Context::getWidth ()
|
||||||
{
|
{
|
||||||
terminal_height = buff[0];
|
terminal_height = buff[0];
|
||||||
terminal_width = buff[1];
|
terminal_width = buff[1];
|
||||||
|
|
||||||
debug (format (STRING_INTERACTIVE_WIDTH, terminal_width));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,8 +92,6 @@ int Context::getHeight ()
|
||||||
{
|
{
|
||||||
terminal_height = buff[0];
|
terminal_height = buff[0];
|
||||||
terminal_width = buff[1];
|
terminal_width = buff[1];
|
||||||
|
|
||||||
debug (format (STRING_INTERACTIVE_HEIGHT, terminal_height));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue