aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 02fce63..4ec7f35 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -2924,7 +2924,7 @@ namespace QuickMedia {
if(parse_userdata.font_tag_has_custom_color)
formatted_text_flags |= FORMATTED_TEXT_FLAG_COLOR;
- if(parse_userdata.inside_source_highlight || !parse_userdata.supports_syntax_highlight || (parse_userdata.inside_code_tag && parse_userdata.code_tag_language.size() == 0)) {
+ if(parse_userdata.inside_source_highlight || (parse_userdata.inside_code_tag && (parse_userdata.code_tag_language.size() == 0 || !parse_userdata.supports_syntax_highlight))) {
formatted_text_flags |= FORMATTED_TEXT_FLAG_CODE;
} else if(parse_userdata.inside_code_tag) {
formatted_text_flags |= FORMATTED_TEXT_FLAG_CODE;