mirror of https://github.com/xzeldon/htop.git
Apply stale lib highlighting for EXE too
This commit is contained in:
parent
9114cf6ea3
commit
de1d06300d
|
@ -771,8 +771,12 @@ void Process_writeField(const Process* this, RichString* str, ProcessField field
|
||||||
const char* procExe;
|
const char* procExe;
|
||||||
if (this->procExe) {
|
if (this->procExe) {
|
||||||
attr = CRT_colors[Process_isUserlandThread(this) ? PROCESS_THREAD_BASENAME : PROCESS_BASENAME];
|
attr = CRT_colors[Process_isUserlandThread(this) ? PROCESS_THREAD_BASENAME : PROCESS_BASENAME];
|
||||||
if (this->procExeDeleted && this->settings->highlightDeletedExe)
|
if (this->settings->highlightDeletedExe) {
|
||||||
attr = CRT_colors[FAILED_READ];
|
if (this->procExeDeleted)
|
||||||
|
attr = CRT_colors[FAILED_READ];
|
||||||
|
else if (this->usesDeletedLib)
|
||||||
|
attr = CRT_colors[PROCESS_TAG];
|
||||||
|
}
|
||||||
procExe = this->procExe + this->procExeBasenameOffset;
|
procExe = this->procExe + this->procExeBasenameOffset;
|
||||||
} else {
|
} else {
|
||||||
attr = CRT_colors[PROCESS_SHADOW];
|
attr = CRT_colors[PROCESS_SHADOW];
|
||||||
|
|
Loading…
Reference in New Issue