1
0
Fork 0
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:
Jeremy Kolb 2024-07-18 09:42:48 -04:00
parent f22cf1fd38
commit 930818bb1d
2 changed files with 3 additions and 3 deletions

View file

@ -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 {