Skip to content

Commit

Permalink
Undo too-aggressive code collapsing from tree mode refactoring
Browse files Browse the repository at this point in the history
While abstracting processes from row display, code relating to
row parent sorting was moved to row-level that in fact must be
done at process-level (using the Row_compareByParent_Base call
circumvented this unintentially).

Resolves #1378
  • Loading branch information
natoscott authored and BenBE committed Jan 17, 2024
1 parent 49c1351 commit 5d778ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Process.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,10 @@ int Process_compare(const void* v1, const void* v2) {
}

int Process_compareByParent(const Row* r1, const Row* r2) {
int result = Row_compareByParent_Base(r1, r2);
int result = SPACESHIP_NUMBER(
r1->isRoot ? 0 : Row_getGroupOrParent(r1),
r2->isRoot ? 0 : Row_getGroupOrParent(r2)
);

if (result != 0)
return result;
Expand Down

0 comments on commit 5d778ea

Please sign in to comment.