From 94a80afed42a8b36d69a229bf44ba690f8f59a78 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Dec 2018 21:39:39 +0100 Subject: [PATCH] format-table: never try to reuse cells that have color/url/uppercase set The table cell reusing code is supposed to be an internal memory optimization, and not more. This means behaviour should be the same as if we wouldn't reuse cells. --- src/shared/format-table.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 6fdb583a72..7d529801a1 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -270,6 +270,14 @@ static bool table_data_matches( if (d->ellipsize_percent != ellipsize_percent) return false; + /* If a color/url/uppercase flag is set, refuse to merge */ + if (d->color) + return false; + if (d->url) + return false; + if (d->uppercase) + return false; + k = table_data_size(type, data); l = table_data_size(d->type, d->data);