void cfg_load(void) { const char *rc; const int prev_global_local_settings = curr_stats.global_local_settings; /* Make changes of usually local settings during configuration affect all * views. */ curr_stats.global_local_settings = 1; /* Try to load global configuration. */ (void)cfg_source_file(PACKAGE_SYSCONF_DIR "/" VIFMRC); /* Try to load local configuration. */ rc = env_get(MYVIFMRC_EV); if(!is_null_or_empty(rc)) { (void)cfg_source_file(rc); } //add by sim1: disabling millerview for VSPLIT if (curr_stats.number_of_windows == 2 && curr_stats.split == VSPLIT) { set_millerview(FALSE); } curr_stats.global_local_settings = prev_global_local_settings; }
/* Sources color scheme file. Returns non-zero on error (e.g. file doesn't * exist), and zero otherwise. */ static int source_cs(const char name[]) { char cs_path[PATH_MAX]; get_cs_path(name, cs_path, sizeof(cs_path)); return cfg_source_file(cs_path); }
void cfg_load(void) { const char *rc; const int prev_global_local_settings = curr_stats.global_local_settings; /* Make changes of usually local settings during configuration affect all * views. */ curr_stats.global_local_settings = 1; /* Try to load global configuration. */ (void)cfg_source_file(PACKAGE_SYSCONF_DIR "/" VIFMRC); /* Try to load local configuration. */ rc = env_get(MYVIFMRC_EV); if(!is_null_or_empty(rc)) { (void)cfg_source_file(rc); } curr_stats.global_local_settings = prev_global_local_settings; }