FIRE-19959: Fix unindent after } when a previous line had a word wrap

master
Zi Ree 2023-07-17 17:21:13 +02:00
parent 7f2e0b3566
commit 7a77145cd3
2 changed files with 4 additions and 1 deletions

View File

@ -1915,7 +1915,10 @@ void LLTextEditor::unindentLineBeforeCloseBrace()
LLWString text = getWText();
if( ' ' == text[ mCursorPos - 1 ] )
{
S32 line = getLineNumFromDocIndex(mCursorPos, false);
// <FS:Zi> FIRE-19959: Fix unindent after } when a previous line had a word wrap
//S32 line = getLineNumFromDocIndex(mCursorPos, false);
S32 line = getLineNumFromDocIndex(mCursorPos, true);
// </FS:Zi>
S32 line_start = getLineStart(line);
// Jump over spaces in the current line

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB