diff --git a/Action.c b/Action.c index f7d7d4da..2483d451 100644 --- a/Action.c +++ b/Action.c @@ -280,7 +280,7 @@ static Htop_Reaction actionExpandOrCollapse(State* st) { } static Htop_Reaction actionCollapseIntoParent(State* st) { - if (!st->settings->treeView) { + if (!st->settings->ss->treeView) { return HTOP_OK; } bool changed = collapseIntoParent(st->panel); diff --git a/htop.c b/htop.c index be01e14c..875cf6e8 100644 --- a/htop.c +++ b/htop.c @@ -205,7 +205,7 @@ int main(int argc, char** argv) { if (!flags.useColors) settings->colorScheme = COLORSCHEME_MONOCHROME; if (flags.treeView) - settings->treeView = true; + settings->screens[0]->treeView = true; CRT_init(settings->delay, settings->colorScheme); diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index b2c4838f..4ccba3fe 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -186,7 +186,7 @@ typedef struct LinuxProcess_ { } LinuxProcess; #ifndef Process_isKernelThread -#define Process_isKernelThread(_process) ((LinuxProcess*)(_process)->isKernelThread) +#define Process_isKernelThread(_process) (((LinuxProcess*)(_process))->isKernelThread) #endif #ifndef Process_isUserlandThread