Correct a suspicious assigning of a value to a reference

This commit is contained in:
ridiculousfish 2021-06-26 20:06:40 -07:00
parent c5bcd3cc95
commit 8ddbf85768

View File

@ -904,7 +904,7 @@ void highlighter_t::color_as_argument(const ast::node_t &node) {
// Highlight it recursively.
highlighter_t cmdsub_highlighter(cmdsub_contents, this->ctx, this->working_directory,
this->io_ok);
const color_array_t &subcolors = cmdsub_highlighter.highlight();
color_array_t subcolors = cmdsub_highlighter.highlight();
// Copy out the subcolors back into our array.
assert(subcolors.size() == cmdsub_contents.size());