mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
Shell: Add command to history before running, instead of after
This commit is contained in:
committed by
Ali Mohammad Pur
parent
78b3703586
commit
f597d7c730
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user