void hists_prompt_save(const char input[]) { save_into_history(input, &curr_stats.prompt_hist, curr_stats.history_size); }
void hists_search_save(const char pattern[]) { save_into_history(pattern, &curr_stats.search_hist, curr_stats.history_size); }
void save_prompt_history(const char input[]) { save_into_history(input, &cfg.prompt_hist, cfg.history_len); }
void save_filter_history(const char input[]) { save_into_history(input, &cfg.filter_hist, cfg.history_len); }
void save_search_history(const char pattern[]) { save_into_history(pattern, &cfg.search_hist, cfg.history_len); }