Skip to content
Snippets Groups Projects
Commit 2be2fdca authored by Richard Linden's avatar Richard Linden
Browse files

EXT-3606 - Script editor window: next line not indenting if current line wraps

parent 09add95e
No related branches found
No related tags found
No related merge requests found
...@@ -2334,7 +2334,7 @@ void LLTextEditor::getCurrentLineAndColumn( S32* line, S32* col, BOOL include_wo ...@@ -2334,7 +2334,7 @@ void LLTextEditor::getCurrentLineAndColumn( S32* line, S32* col, BOOL include_wo
void LLTextEditor::autoIndent() void LLTextEditor::autoIndent()
{ {
// Count the number of spaces in the current line // Count the number of spaces in the current line
S32 line = getLineNumFromDocIndex(mCursorPos); S32 line = getLineNumFromDocIndex(mCursorPos, false);
S32 line_start = getLineStart(line); S32 line_start = getLineStart(line);
S32 space_count = 0; S32 space_count = 0;
S32 i; S32 i;
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
name="test_text_editor" name="test_text_editor"
tool_tip="text editor" tool_tip="text editor"
top="25" top="25"
word_wrap="true"
width="200"> width="200">
Text Editor Text Editor
</text_editor> </text_editor>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment