summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-19 16:46:00 +0100
committerBenBE <BenBE@geshi.org>2021-05-23 09:30:36 +0200
commitbf07c713ba431e86edf3773cc7428398c911fc46 (patch)
tree2b0f25a96562aade4c8af32d9e015ea61fcafeaa /Process.c
parentd9feff150c1f0fb7ae8156bc5271c6bac482aac4 (diff)
Allow for highlighting of deleted executables to be configured
Fixes #383
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Process.c b/Process.c
index 5236c8b1..f134be53 100644
--- a/Process.c
+++ b/Process.c
@@ -594,7 +594,7 @@ void Process_writeCommand(const Process* this, int attr, int baseAttr, RichStrin
const bool highlightBaseName = this->settings->highlightBaseName;
const bool highlightSeparator = true;
- const bool highlightDeleted = true;
+ const bool highlightDeleted = this->settings->highlightDeletedExe;
if (!this->mergedCommand.str) {
int len = 0;
@@ -766,7 +766,7 @@ void Process_writeField(const Process* this, RichString* str, ProcessField field
const char* procExe;
if (this->procExe) {
attr = CRT_colors[Process_isUserlandThread(this) ? PROCESS_THREAD_BASENAME : PROCESS_BASENAME];
- if (this->procExeDeleted)
+ if (this->procExeDeleted && this->settings->highlightDeletedExe)
attr = CRT_colors[FAILED_READ];
procExe = this->procExe + this->procExeBasenameOffset;
} else {

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