diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2024-10-24 17:29:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 17:29:45 +0300 |
commit | f9be6cb5b3e6fe3eadafc7ddbcc000c3fe8ed225 (patch) | |
tree | ba9bc817d09af4bed7e49663587cded888532a1c /indra/llui/lltexteditor.cpp | |
parent | 297c2016a12ca4bb427572dca73206d8ba2b1888 (diff) |
#2904 output position should ignore cursor position
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rw-r--r-- | indra/llui/lltexteditor.cpp | 8 |
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); |