summaryrefslogtreecommitdiffstats
path: root/src/shared/format-table.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-08 21:16:23 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-30 16:46:10 +0100
commit13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9 (patch)
treec3e88071c2338ec500ee30cbca882cb25067827d /src/shared/format-table.c
parentterminal-util: split out file:// generation from terminal_urlify_path() (diff)
downloadsystemd-13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9.tar.xz
systemd-13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9.zip
format-table: when duplicating a cell, also copy the color
Diffstat (limited to '')
-rw-r--r--src/shared/format-table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/format-table.c b/src/shared/format-table.c
index 10e15c9d70..38dfb145c9 100644
--- a/src/shared/format-table.c
+++ b/src/shared/format-table.c
@@ -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;