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:
parent
78b3703586
commit
f597d7c730
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue