1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Take removed columns into account when applying column alignments

This commit is contained in:
Stefan Haller
2023-08-18 18:27:09 +02:00
parent aa493d3a9e
commit 7a8df7795c
2 changed files with 11 additions and 8 deletions

View File

@ -212,10 +212,7 @@ func TestRenderDisplayStrings(t *testing.T) {
{
input: [][]string{{"a", "", "bcd", "efg", "h"}, {"i", "", "j", "k", "l"}},
columnAlignments: []Alignment{AlignLeft, AlignLeft, AlignRight, AlignLeft},
expected: "a bcd efg h\ni j k l",
/* Wrong, it should really be:
expected: "a bcd efg h\ni j k l",
*/
},
{
input: [][]string{{"abc", "", "d", ""}, {"e", "", "f", ""}},