diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-12-19 16:46:00 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-05-23 09:30:36 +0200 |
commit | bf07c713ba431e86edf3773cc7428398c911fc46 (patch) | |
tree | 2b0f25a96562aade4c8af32d9e015ea61fcafeaa /Process.c | |
parent | d9feff150c1f0fb7ae8156bc5271c6bac482aac4 (diff) |
Allow for highlighting of deleted executables to be configured
Fixes #383
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |