]> git.ipfire.org Git - thirdparty/systemd.git/commit
loginctl: *-status: set minimum table column width if extra info will be printed
authorMike Yuan <me@yhndnzj.com>
Tue, 10 Oct 2023 14:08:36 +0000 (22:08 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 10 Oct 2023 22:30:52 +0000 (23:30 +0100)
commite533dad10fdcd92560c24d7ce854c1d20314631d
tree126169169c3b513c996d197b9417610b91ea88b1
parent8fff78a1dded105e1ee87bc66e29ef2fd61bf8c9
loginctl: *-status: set minimum table column width if extra info will be printed

Follow-up for bf366954fa09070f6c3e1e630f57d20463fc5739

Before this commit, we hardcode "prefix" to the widest field
possible in the table. However, there's no guarantee that the
field would actually be used/added, so it could potentially
result in misalignment. Therefore, let's set the minimum width
of the cell to the hardcoded width too.
src/login/loginctl.c