summaryrefslogtreecommitdiff
path: root/indra/newview/llscripteditor.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-03-14 16:08:42 +0200
committerGitHub <noreply@github.com>2025-03-14 16:08:42 +0200
commite2333b4d312301206f80f60e9c2f0258bc8e6235 (patch)
treef85fc4db056330c8cfb63d4e3045b77db182facd /indra/newview/llscripteditor.cpp
parent7aad509d19c75277519dbcf119c3ba2e1f8a9c7c (diff)
parentda0a819d64514cad17cf306c3ebe2ac79db8283a (diff)
Merge pull request #3701 from secondlife/marchcat/lua_editor
Lua editor: WIP updates
Diffstat (limited to 'indra/newview/llscripteditor.cpp')
-rw-r--r--indra/newview/llscripteditor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llscripteditor.cpp b/indra/newview/llscripteditor.cpp
index 0edaf43753..2a9dd73936 100644
--- a/indra/newview/llscripteditor.cpp
+++ b/indra/newview/llscripteditor.cpp
@@ -45,7 +45,8 @@ LLScriptEditor::Params::Params()
LLScriptEditor::LLScriptEditor(const Params& p)
: LLTextEditor(p)
, mShowLineNumbers(p.show_line_numbers),
- mUseDefaultFontSize(p.default_font_size)
+ mUseDefaultFontSize(p.default_font_size),
+ mLuauLanguage(false)
{
if (mShowLineNumbers)
{
@@ -200,12 +201,12 @@ void LLScriptEditor::clearSegments()
LLKeywords::keyword_iterator_t LLScriptEditor::keywordsBegin()
{
- return mLuauLanguage ? mKeywordsLua.begin() : mKeywordsLSL.begin();
+ return getKeywords().begin();
}
LLKeywords::keyword_iterator_t LLScriptEditor::keywordsEnd()
{
- return mLuauLanguage ? mKeywordsLua.end() : mKeywordsLSL.end();
+ return getKeywords().end();
}
LLKeywords& LLScriptEditor::getKeywords()
@@ -237,7 +238,6 @@ void LLScriptEditor::drawSelectionBackground()
++rect_it)
{
LLRect selection_rect = *rect_it;
- selection_rect = *rect_it;
selection_rect.translate(mVisibleTextRect.mLeft - content_display_rect.mLeft, mVisibleTextRect.mBottom - content_display_rect.mBottom);
gl_rect_2d(selection_rect, selection_color);
}