예제 #1
0
파일: config.c 프로젝트: ackeack/workenv
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);
	}
}
예제 #2
0
파일: status.c 프로젝트: acklinr/vifm
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);
	}
}