mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 23:15:46 +00:00
Restore functionality of stripExeFromCmdline setting
This was accidentally lost in fbec3e4005
This commit is contained in:
parent
ce50095323
commit
9eed30949b
12
Process.c
12
Process.c
@ -601,11 +601,15 @@ void Process_makeCommandStr(Process* this) {
|
||||
}
|
||||
|
||||
if (matchLen) {
|
||||
/* strip the matched exe prefix */
|
||||
cmdline += matchLen;
|
||||
if (stripExeFromCmdline) {
|
||||
/* strip the matched exe prefix */
|
||||
cmdline += matchLen;
|
||||
|
||||
commStart -= matchLen;
|
||||
commEnd -= matchLen;
|
||||
commStart -= matchLen;
|
||||
commEnd -= matchLen;
|
||||
} else {
|
||||
matchLen = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (!matchLen || (haveCommField && *cmdline)) {
|
||||
|
Loading…
Reference in New Issue
Block a user