void save_command_history(const char command[]) { if(is_history_command(command)) { update_last_cmdline_command(command); save_into_history(command, &cfg.cmd_hist, cfg.history_len); } }
void hists_commands_save(const char command[]) { if(is_history_command(command)) { if(!curr_stats.restart_in_progress && curr_stats.load_stage == 3) { set_last_cmdline_command(command); } save_into_history(command, &curr_stats.cmd_hist, curr_stats.history_size); } }