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;
}
}