1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

Shell: Add command to history before running, instead of after

This commit is contained in:
Adam Harald Jørgensen 2023-10-24 15:53:57 +02:00 committed by Ali Mohammad Pur
parent 78b3703586
commit f597d7c730

View file

@ -2133,11 +2133,11 @@ bool Shell::read_single_line()
if (line.is_empty())
return true;
run_command(line);
if (!has_history_event(line))
m_editor->add_to_history(line);
run_command(line);
return true;
}
}