Make eval_node_at_offset return an error indication instead of the exit

status of the last command
This commit is contained in:
ridiculousfish
2013-12-28 16:33:26 -08:00
parent 0f9de11a67
commit c632307eaa
3 changed files with 13 additions and 7 deletions

View File

@@ -2625,7 +2625,7 @@ int parser_t::eval_new_parser(const wcstring &cmd, const io_chain_t &io, enum bl
execution_contexts.pop_back();
delete ctx;
return result;
return 0;
}
int parser_t::eval_block_node(node_offset_t node_idx, const io_chain_t &io, enum block_type_t block_type)