1 Star 0 Fork 49

wangkaiyuan/systemd

forked from src-anolis-os/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0125-format-table-when-duplicating-a-cell-also-copy-the-c.patch 780 Bytes
一键复制 编辑 原始数据 按行查看 历史
张彬琛 提交于 2021-01-20 13:59 . import systemd-239-29.el8.src.rpm
From f18db51fffbcecc2d7a30b2317c8a7a43b613757 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Thu, 8 Nov 2018 21:16:23 +0100
Subject: [PATCH] format-table: when duplicating a cell, also copy the color
(cherry picked from commit 13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9)
Related: #1689832
---
src/basic/format-table.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/basic/format-table.c b/src/basic/format-table.c
index 94e796d1ca..3429d9a071 100644
--- a/src/basic/format-table.c
+++ b/src/basic/format-table.c
@@ -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;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangkaiyuan01/systemd.git
git@gitee.com:wangkaiyuan01/systemd.git
wangkaiyuan01
systemd
systemd
a8

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385