mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 03:53:53 +08:00
switch statements to respect fish_trace
Previously switch statements were not reported by fish_trace.
This commit is contained in:
parent
70f51937d9
commit
1cf835e6e9
@ -537,6 +537,7 @@ end_execution_reason_t parse_execution_context_t::run_switch_statement(
|
||||
}
|
||||
|
||||
end_execution_reason_t result = end_execution_reason_t::ok;
|
||||
if (trace_enabled(*parser)) trace_argv(*parser, L"switch", {switch_value_expanded});
|
||||
block_t *sb = parser->push_block(block_t::switch_block());
|
||||
|
||||
// Expand case statements.
|
||||
@ -577,6 +578,7 @@ end_execution_reason_t parse_execution_context_t::run_switch_statement(
|
||||
}
|
||||
|
||||
parser->pop_block(sb);
|
||||
trace_if_enabled(*parser, L"end switch");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user