mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Migrate the return bool outside of block_t
This is a flag that gets set by the return function. But we only need one, not per-block. Move it into libdata.
This commit is contained in:
@@ -831,6 +831,9 @@ static bool exec_block_or_func_process(parser_t &parser, std::shared_ptr<job_t>
|
||||
|
||||
parser.allow_function();
|
||||
parser.pop_block(fb);
|
||||
|
||||
// If we returned due to a return statement, then stop returning now.
|
||||
parser.libdata().returning = false;
|
||||
} else {
|
||||
assert(p->type == process_type_t::block_node);
|
||||
assert(p->block_node_source && p->internal_block_node && "Process is missing node info");
|
||||
|
||||
Reference in New Issue
Block a user