summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-10-06 16:38:45 +0200
committerBenBE <BenBE@geshi.org>2021-10-07 08:42:08 +0200
commitb7248f6cb82350b683adf42d0fd4ec917397ea05 (patch)
treedca0b1000c2115f0272e0eecbfd346cabd08c400
parent74afca7bc10ece0964720be0b59c8353e66e2576 (diff)
Handle procExeDeleted & usesDeletedLib without mergedCommandline mode
-rw-r--r--Process.c6
1 files changed, 6 insertions, 0 deletions
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;

© 2014-2022 Faster IT GmbH | imprint | privacy policy