teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0125-format-table-when-duplicating-a-cell-also-copy-the-c.patch

ff6046
From f18db51fffbcecc2d7a30b2317c8a7a43b613757 Mon Sep 17 00:00:00 2001
ff6046
From: Lennart Poettering <lennart@poettering.net>
ff6046
Date: Thu, 8 Nov 2018 21:16:23 +0100
ff6046
Subject: [PATCH] format-table: when duplicating a cell, also copy the color
ff6046
ff6046
(cherry picked from commit 13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9)
ff6046
ff6046
Related: #1689832
ff6046
---
ff6046
 src/basic/format-table.c | 2 ++
ff6046
 1 file changed, 2 insertions(+)
ff6046
ff6046
diff --git a/src/basic/format-table.c b/src/basic/format-table.c
ff6046
index 94e796d1ca..3429d9a071 100644
ff6046
--- a/src/basic/format-table.c
ff6046
+++ b/src/basic/format-table.c
ff6046
@@ -414,6 +414,8 @@ static int table_dedup_cell(Table *t, TableCell *cell) {
ff6046
         if (!nd)
ff6046
                 return -ENOMEM;
ff6046
 
ff6046
+        nd->color = od->color;
ff6046
+
ff6046
         table_data_unref(od);
ff6046
         t->data[i] = nd;
ff6046