mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-01 18:27:20 +02:00
Portability
- Fixed compiler warnings on Ubuntu.
This commit is contained in:
parent
761ef296ad
commit
94627df5de
1 changed files with 2 additions and 0 deletions
|
@ -131,10 +131,12 @@ int CmdCustom::execute (std::string& output)
|
|||
// TODO Consider rc.verbose
|
||||
int table_header = 0;
|
||||
if (context.verbose ("label"))
|
||||
{
|
||||
if (context.color () && context.config.getBoolean ("fontunderline"))
|
||||
table_header = 1; // Underlining doesn't use extra line.
|
||||
else
|
||||
table_header = 2; // Dashes use an extra line.
|
||||
}
|
||||
|
||||
// Report output can be limited by rows or lines.
|
||||
int maxrows = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue