mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 18:21:16 -03:00
Migrate the notion of 'foreground' from job to job group
Whether a job is foreground is a property of its pgid, so it belongs naturally on the job group.
This commit is contained in:
@@ -104,7 +104,7 @@ int builtin_fg(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
||||
reader_write_title(job->command(), parser);
|
||||
|
||||
parser.job_promote(job);
|
||||
job->mut_flags().foreground = true;
|
||||
job->group->set_is_foreground(true);
|
||||
|
||||
job->continue_job(parser, true, job->is_stopped());
|
||||
return STATUS_CMD_OK;
|
||||
|
||||
Reference in New Issue
Block a user