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)
committerLukáš Nykrýn <lnykryn@redhat.com>
Fri, 3 May 2019 10:30:21 +0000 (12:30 +0200)
(cherry picked from commit 13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9)

Related: #1689832

src/basic/format-table.c

index 94e796d1caac456f3de92fb4095ea2cd17f1de74..3429d9a071bcddc6ab88a97ff1c1ab9b89c2e525 100644 (file)
@@ -414,6 +414,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;