From 8ddbf857687c21c96855610ca2dc6cde68e3bbf6 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 26 Jun 2021 20:06:40 -0700 Subject: [PATCH] Correct a suspicious assigning of a value to a reference --- src/highlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlight.cpp b/src/highlight.cpp index a1e432979..0a38a5cec 100644 --- a/src/highlight.cpp +++ b/src/highlight.cpp @@ -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());