From b7248f6cb82350b683adf42d0fd4ec917397ea05 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 6 Oct 2021 16:38:45 +0200 Subject: [PATCH] Handle procExeDeleted & usesDeletedLib without mergedCommandline mode --- Process.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Process.c b/Process.c index 70110a07..f0fc67fa 100644 --- a/Process.c +++ b/Process.c @@ -511,6 +511,12 @@ void Process_makeCommandStr(Process* this) { if (cmdlineBasenameEnd > cmdlineBasenameStart) WRITE_HIGHLIGHT(showProgramPath ? cmdlineBasenameStart : 0, cmdlineBasenameEnd - cmdlineBasenameStart, baseAttr, CMDLINE_HIGHLIGHT_FLAG_BASENAME); + + if (this->procExeDeleted) + WRITE_HIGHLIGHT(showProgramPath ? cmdlineBasenameStart : 0, cmdlineBasenameEnd - cmdlineBasenameStart, delExeAttr, CMDLINE_HIGHLIGHT_FLAG_DELETED); + else if (this->usesDeletedLib) + WRITE_HIGHLIGHT(showProgramPath ? cmdlineBasenameStart : 0, cmdlineBasenameEnd - cmdlineBasenameStart, delLibAttr, CMDLINE_HIGHLIGHT_FLAG_DELETED); + (void)stpcpyWithNewlineConversion(str, cmdline + (showProgramPath ? 0 : cmdlineBasenameStart)); return;