From fd096e5011c8d777f54c7fe473b12e6730dbedc0 Mon Sep 17 00:00:00 2001
From: Richard Linden <none@none>
Date: Thu, 18 Mar 2010 17:12:43 -0700
Subject: [PATCH] EXT-5549 - Can't Select Last Character In Chat Window

---
 indra/newview/llchathistory.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index e1c96d4a16..78b258a82d 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -718,7 +718,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
 		view->reshape(target_rect.getWidth(), view->getRect().getHeight());
 		view->setOrigin(target_rect.mLeft, view->getRect().mBottom);
 
-		std::string widget_associated_text = "\n[" + chat.mTimeStr + "] ";
+		std::string widget_associated_text = "[" + chat.mTimeStr + "] ";
 		if (utf8str_trim(chat.mFromName).size() != 0 && chat.mFromName != SYSTEM_FROM)
 			widget_associated_text += chat.mFromName + delimiter;
 
@@ -816,6 +816,8 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
 		{
 			message = chat.mFromName + message;
 		}
+
+		message += "\n";
 		
 
 		mEditor->appendText(message, FALSE, style_params);
-- 
GitLab