diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-02 16:06:19 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-12-02 19:14:22 +0100 |
commit | 9029cc83ad2f12cb447ed80d816684e856733a9a (patch) | |
tree | fc7e93ab99c7a8d0943aca977bd3b87bcc22c484 /linux/LinuxProcess.c | |
parent | 43ee295c23a21fda6a36fa7bbe150a766e870664 (diff) |
Merge identical conditional branches
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r-- | linux/LinuxProcess.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 388130f7..23b08be2 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -536,9 +536,7 @@ static void LinuxProcess_writeCommand(const Process* this, int attr, int baseAtt RichString_append(str, attr, lp->mergedCommand.str); if (lp->mergedCommand.commEnd) { - if (lp->mergedCommand.separateComm) { - RichString_setAttrn(str, commAttr, commStart, commEnd - 1); - } else if (commStart == baseStart && highlightBaseName) { + if (!lp->mergedCommand.separateComm && commStart == baseStart && highlightBaseName) { /* If it was matched with procExe's basename, make it bold if needed */ if (commEnd > baseEnd) { RichString_setAttrn(str, A_BOLD | baseAttr, baseStart, baseEnd - 1); |