summaryrefslogtreecommitdiff
path: root/indra/llui/lltexteditor.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-10-24 14:44:48 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-10-24 14:44:48 -0400
commit6daa52b3b93328506e34d6595a01d30c334897bc (patch)
treebdbe951d06f95a1a7752d5c23950eda7bb36a9e7 /indra/llui/lltexteditor.cpp
parent850bdf4ce335049a75e1c4f6400b627bf328a264 (diff)
parentb611324db58def7d65f4bfc721e7dc1c378b7fa3 (diff)
Merge branch 'develop' into maxim/viewer_2245
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rw-r--r--indra/llui/lltexteditor.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 088fbe2744..81959f1542 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -1602,8 +1602,14 @@ void LLTextEditor::cleanStringForPaste(LLWString & clean_string)
}
}
-void LLTextEditor::pasteTextWithLinebreaksImpl(const LLWString & clean_string)
+void LLTextEditor::pasteTextWithLinebreaksImpl(const LLWString & clean_string, bool reset_cursor)
{
+ if (reset_cursor)
+ {
+ deselect();
+ setCursorPos(getLength());
+ }
+
std::basic_string<llwchar>::size_type start = 0;
std::basic_string<llwchar>::size_type pos = clean_string.find('\n',start);