소스 검색

fixes string colorisation bug

Laserlicht 1 년 전
부모
커밋
03d03491b5
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      client/windows/CMessage.cpp

+ 4 - 0
client/windows/CMessage.cpp

@@ -130,7 +130,11 @@ std::vector<std::string> CMessage::breakText(std::string text, size_t maxLineWid
 		if(currPos < text.length() && (text[currPos] != 0x0a))
 		{
 			if(wordBreak != ui32(-1))
+			{
 				currPos = wordBreak;
+				if(text.substr(0, currPos).find('{') == std::string::npos)
+					opened = false;
+			}
 			else
 				currPos -= symbolSize;
 		}