mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Account for total length of 80
This commit is contained in:
parent
f22cf1fd38
commit
930818bb1d
2 changed files with 3 additions and 3 deletions
|
@ -1269,8 +1269,8 @@ struct CmdFlakeShow : FlakeCommand, MixJSON
|
|||
|
||||
// If the string is too long then resize add ellipses
|
||||
std::string desc;
|
||||
if (length > 80) {
|
||||
trimmed.resize(80);
|
||||
if (length > 77) {
|
||||
trimmed.resize(77);
|
||||
desc = trimmed.append("...");
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue