aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Matrix.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-06 00:38:30 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-06 00:38:30 +0200
commit9369463c70b2afb74f03b46cedfc424c9cabe6f2 (patch)
treeecc01f421cb44b0b8cb8e584e5365f4cdd292f77 /src/plugins/Matrix.cpp
parent7ddc3998b9858c35e38dea19a2ce0563956ec148 (diff)
Matrix: fix message being incorrectly formatted if source-highlight is not installed
Diffstat (limited to 'src/plugins/Matrix.cpp')
-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;