]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
format-table: when duplicating a cell, also copy the color
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Nov 2018 20:16:23 +0000 (21:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Nov 2018 15:46:10 +0000 (16:46 +0100)
src/shared/format-table.c

index 10e15c9d709de2c90238f5fe1dc1516a9f0093e8..38dfb145c92aea58cb7ea852295a3e0325c79de1 100644 (file)
@@ -398,6 +398,8 @@ static int table_dedup_cell(Table *t, TableCell *cell) {
         if (!nd)
                 return -ENOMEM;
 
+        nd->color = od->color;
+
         table_data_unref(od);
         t->data[i] = nd;