mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 03:51:20 -03:00
Refactor block_t storage in parser_t from a linked list to a vector
This commit is contained in:
3
exec.cpp
3
exec.cpp
@@ -580,7 +580,8 @@ static void exec_no_exec(parser_t &parser, const job_t *job)
|
||||
}
|
||||
else if (builtin_name == L"end")
|
||||
{
|
||||
if (parser.current_block == NULL || parser.current_block->type() == TOP)
|
||||
const block_t *block = parser.current_block();
|
||||
if (block == NULL || block->type() == TOP)
|
||||
{
|
||||
fprintf(stderr, "Warning: not popping the root block\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user