fixed line numbering in script editors
parent
617ca79ed0
commit
edcd835feb
|
|
@ -1180,6 +1180,10 @@ void LLTextBase::reflow(S32 start_index)
|
|||
++seg_iter;
|
||||
seg_offset = 0;
|
||||
}
|
||||
if (force_newline)
|
||||
{
|
||||
line_count++;
|
||||
}
|
||||
}
|
||||
|
||||
// calculate visible region for diplaying text
|
||||
|
|
|
|||
|
|
@ -2158,7 +2158,7 @@ void LLTextEditor::drawLineNumbers()
|
|||
return;
|
||||
}
|
||||
|
||||
S32 cursor_line = getLineNumFromDocIndex(mCursorPos);
|
||||
S32 cursor_line = mLineInfoList[getLineNumFromDocIndex(mCursorPos)].mLineNum;
|
||||
|
||||
if (mShowLineNumbers)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue