tocursor();
}
+static inline void markhovered(void)
+{
+ if (cfg.showdetail && ndents) { /* Reversed block for hovered entry */
+ tocursor();
+ addch(' ' | A_REVERSE);
+ }
+}
+
static int adjust_cols(int n)
{
/* Calculate the number of cols available to print entry name */
if (dir)
attroff(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);
- if (cfg.showdetail) { /* Reversed block for hovered entry */
- tocursor();
- addch(' ' | A_REVERSE);
- }
+ markhovered();
statusbar(path);
}
addch('v');
}
- if (cfg.showdetail) { /* Reversed block for hovered entry */
- tocursor();
- addch(' ' | A_REVERSE);
- }
+ markhovered();
statusbar(path);
}