mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-29 22:41:16 -03:00
Teach a job its command at constructor time
No point in allowing this to be set later.
This commit is contained in:
@@ -383,8 +383,10 @@ static uint64_t next_internal_job_id() {
|
||||
return ++s_next;
|
||||
}
|
||||
|
||||
job_t::job_t(const properties_t &props)
|
||||
: properties(props), internal_job_id(next_internal_job_id()) {}
|
||||
job_t::job_t(const properties_t &props, wcstring command_str)
|
||||
: properties(props),
|
||||
command_str(std::move(command_str)),
|
||||
internal_job_id(next_internal_job_id()) {}
|
||||
|
||||
job_t::~job_t() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user