diff --git a/indra/newview/llchatbar.cpp b/indra/newview/llchatbar.cpp
index 49f80ff6d36c95ad1ab40a43510e9e56158d46fc..7cfdfdb74d36c4899ce5e6666d583223c7ac9b27 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