mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +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())
|
if (line.is_empty())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
run_command(line);
|
|
||||||
|
|
||||||
if (!has_history_event(line))
|
if (!has_history_event(line))
|
||||||
m_editor->add_to_history(line);
|
m_editor->add_to_history(line);
|
||||||
|
|
||||||
|
run_command(line);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue