From c23ec41622ca010331e22c853a82df10572f43f3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 25 May 2018 21:02:44 +0300 Subject: [PATCH] Don't replace 'code' tag inside a possible 'pre'. Partially fixes #4728. --- Telegram/SourceFiles/ui/widgets/input_fields.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/widgets/input_fields.cpp b/Telegram/SourceFiles/ui/widgets/input_fields.cpp index 5e842ba52..2e6cda5ef 100644 --- a/Telegram/SourceFiles/ui/widgets/input_fields.cpp +++ b/Telegram/SourceFiles/ui/widgets/input_fields.cpp @@ -159,7 +159,7 @@ const std::map> &TagFinishIndices() { { kTagBold, { kTagBoldIndex, kTagCodeIndex, kTagPreIndex } }, { kTagItalic, { kTagItalicIndex, kTagCodeIndex, kTagPreIndex } }, { kTagCode, { kTagCodeIndex, kTagPreIndex } }, - { kTagPre, { kTagCodeIndex, kTagPreIndex } }, + { kTagPre, { kTagPreIndex } }, }; return cached; }