From 95ff29ff66c3f6aa9d983bca23cbe58afce281db Mon Sep 17 00:00:00 2001
From: Testicular Slingshot <automatic@null.net>
Date: Fri, 28 Feb 2020 01:32:42 -0400
Subject: [PATCH] Fix for chatbar cursor not going to the end of the line when
 typing a message to open the chatbar.

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

diff --git a/indra/newview/llchatbar.cpp b/indra/newview/llchatbar.cpp
index 49f80ff6d3..7cfdfdb74d 100644
--- a/indra/newview/llchatbar.cpp
+++ b/indra/newview/llchatbar.cpp
@@ -47,7 +47,7 @@
 
 using namespace LLChatUtilities;
 
-class LLChatBarGestureObserver : public LLGestureManagerObserver
+class LLChatBarGestureObserver final : public LLGestureManagerObserver
 {
 public:
 	LLChatBarGestureObserver(LLChatBar* chat_barp) : mChatBar(chat_barp){}
@@ -294,6 +294,7 @@ void LLChatBar::startChat(const char* line)
 		std::string line_string(line);
 		bar->mInputEditor->setText(line_string);
 	}
+	bar->mInputEditor->setCursorToEnd();
 }
 
 // static
-- 
GitLab