mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-22 20:23:09 +02:00
View
- Fixed problem with incorrect Color vector addressing. - Modified ViewText to not underline empty column headers. - Implemented ViewText::set method to set only color.
This commit is contained in:
parent
f0f3e55cc6
commit
f8b44b68d7
5 changed files with 37 additions and 26 deletions
|
@ -163,7 +163,8 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
|
|||
if (_width == 0 || sum_ideal <= overage)
|
||||
widths = ideal;
|
||||
else if (sum_minimal > overage)
|
||||
throw std::string ("There is not enough horizontal width to display the results.");
|
||||
// throw std::string ("There is not enough horizontal width to display the results.");
|
||||
widths = minimal;
|
||||
else
|
||||
{
|
||||
widths = minimal;
|
||||
|
@ -221,7 +222,7 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
|
|||
if (c)
|
||||
out += intra;
|
||||
|
||||
if (headers[i].size () < max_lines - i)
|
||||
if (headers[c].size () < max_lines - i)
|
||||
out += _header.colorize (std::string (widths[c], ' '));
|
||||
else
|
||||
out += headers[c][i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue