summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorAnchor <none@none>2019-04-30 15:49:03 -0600
committerAnchor <none@none>2019-04-30 15:49:03 -0600
commitf9f129f93d8eab94e58ff2229a13d68bee23f959 (patch)
tree3e723d8b155c1e5eda74f1333e656e9db64cba7d /indra/llui/lllineeditor.cpp
parent713daebc414da6cdc40b4a3e37748df3af0a8290 (diff)
parent81dbd3663bdaff741e68de0ec4d4d35bedf6649d (diff)
Merge
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r--indra/llui/lllineeditor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index cfab6b7fc8..ff8bf30319 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -499,6 +499,13 @@ void LLLineEditor::setCursorToEnd()
deselect();
}
+void LLLineEditor::resetScrollPosition()
+{
+ mScrollHPos = 0;
+ // make sure cursor says in visible range
+ setCursor(getCursor());
+}
+
BOOL LLLineEditor::canDeselect() const
{
return hasSelection();