- switch (vf->type)
- {
- case FILEVIEW_LIST:
- vflist_color_set(vf, VFLIST(vf)->click_fd, TRUE);
- active = (VFLIST(vf)->click_fd != nullptr);
- class_archive = (VFLIST(vf)->click_fd != nullptr && VFLIST(vf)->click_fd->format_class == FORMAT_CLASS_ARCHIVE);
- break;
- case FILEVIEW_ICON:
- active = (VFICON(vf)->click_fd != nullptr);
- class_archive = (VFICON(vf)->click_fd != nullptr && VFICON(vf)->click_fd->format_class == FORMAT_CLASS_ARCHIVE);
- break;
- }
+ if (vf->type == FILEVIEW_LIST)
+ {
+ vflist_color_set(vf, vf->click_fd, TRUE);
+ }
+
+ active = (vf->click_fd != nullptr);
+ class_archive = (vf->click_fd != nullptr && vf->click_fd->format_class == FORMAT_CLASS_ARCHIVE);