mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 08:31:16 -03:00
Use const auto for all jobs
This commit is contained in:
@@ -785,7 +785,7 @@ parse_execution_result_t parse_execution_context_t::populate_plain_process(
|
||||
static uint32_t last_exec_run_counter = -1;
|
||||
if (process_type == process_type_t::exec && shell_is_interactive()) {
|
||||
bool have_bg = false;
|
||||
for (const auto bg : jobs()) {
|
||||
for (const auto &bg : jobs()) {
|
||||
// The assumption here is that if it is a foreground job,
|
||||
// it's related to us.
|
||||
// This stops us from asking if we're doing `exec` inside a function.
|
||||
|
||||
Reference in New Issue
Block a user