mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 20:44:35 +03:00
Allow for highlighting of deleted executables to be configured
Fixes #383
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user