mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColUDA: No point using utf8_width on non-UTF8 data
This commit is contained in:
parent
3ab2410df3
commit
1d1be49bbd
1 changed files with 2 additions and 3 deletions
|
@ -99,7 +99,7 @@ void ColumnUDA::measure (Task& task, unsigned int& minimum, unsigned int& maximu
|
||||||
}
|
}
|
||||||
else if (_type == "duration")
|
else if (_type == "duration")
|
||||||
{
|
{
|
||||||
minimum = maximum = utf8_width (ISO8601p (value).format ());
|
minimum = maximum = ISO8601p (value).format ().length ();
|
||||||
}
|
}
|
||||||
else if (_type == "string")
|
else if (_type == "string")
|
||||||
{
|
{
|
||||||
|
@ -109,7 +109,7 @@ void ColumnUDA::measure (Task& task, unsigned int& minimum, unsigned int& maximu
|
||||||
}
|
}
|
||||||
else if (_type == "numeric")
|
else if (_type == "numeric")
|
||||||
{
|
{
|
||||||
minimum = maximum = utf8_width (value);
|
minimum = maximum = value.length ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,6 @@ void ColumnUDA::render (
|
||||||
|
|
||||||
else if (_type == "numeric")
|
else if (_type == "numeric")
|
||||||
renderStringRight (lines, width, color, value);
|
renderStringRight (lines, width, color, value);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (_style == "indicator")
|
else if (_style == "indicator")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue