mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 14:43:55 +08:00
Correct a suspicious assigning of a value to a reference
This commit is contained in:
parent
c5bcd3cc95
commit
8ddbf85768
|
@ -904,7 +904,7 @@ void highlighter_t::color_as_argument(const ast::node_t &node) {
|
||||||
// Highlight it recursively.
|
// Highlight it recursively.
|
||||||
highlighter_t cmdsub_highlighter(cmdsub_contents, this->ctx, this->working_directory,
|
highlighter_t cmdsub_highlighter(cmdsub_contents, this->ctx, this->working_directory,
|
||||||
this->io_ok);
|
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.
|
// Copy out the subcolors back into our array.
|
||||||
assert(subcolors.size() == cmdsub_contents.size());
|
assert(subcolors.size() == cmdsub_contents.size());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user