diff options
Diffstat (limited to 'highlight.cpp')
-rw-r--r-- | highlight.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/highlight.cpp b/highlight.cpp index 8145e5f3..f560264c 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -861,7 +861,11 @@ static void color_argument_internal(const wcstring &buffstr, std::vector<highlig */ case e_double_quoted: { - colors[in_pos] = highlight_spec_quote; + // slices are colored in advance, past `in_pos`, and we don't want to overwrite that + if (colors[in_pos] == highlight_spec_param) + { + colors[in_pos] = highlight_spec_quote; + } switch (c) { case L'"': |