mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Date
- Uses mk_wcwidth to calculate the printed width of a character in a date format that is not recognized, instead of simply assuming '1'.
This commit is contained in:
parent
ea2405330f
commit
cfb7fdc987
1 changed files with 2 additions and 2 deletions
|
@ -553,8 +553,8 @@ int Date::length (const std::string& format)
|
||||||
case 'A':
|
case 'A':
|
||||||
case 'B': total += 10; break;
|
case 'B': total += 10; break;
|
||||||
|
|
||||||
// TODO This should be a calculated character width, not necessarily 1.
|
// Calculate the width, don't assume a single character width.
|
||||||
default: total += 1; break;
|
default: total += mk_wcwidth (*i); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue