Skip to content

Commit 8220e0e

Browse files
committed
Remove writeText() call from init
1 parent 534ef89 commit 8220e0e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Dialogs/LuaConsole.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ class LuaConsole final
4343
void init(HINSTANCE hInst, NppData& nppData) {
4444
mp_consoleDlg->initDialog(hInst, nppData, this);
4545
*m_nppData = nppData;
46-
47-
const char *msg = LUA_COPYRIGHT "\r\n\r\n";
48-
mp_consoleDlg->writeText(strlen(msg), msg);
4946
}
5047

5148
void showDialog() { mp_consoleDlg->doDialog(); }

LuaConsole.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ void LuaConsole::setupInput(GUI::ScintillaWindow &sci) {
133133
sci.Call(SCI_INDICSETUNDER, INDIC_BRACEHIGHLIGHT, true);
134134
sci.Call(SCI_BRACEHIGHLIGHTINDICATOR, true, INDIC_BRACEHIGHLIGHT);
135135

136+
sci.Call(SCI_SETINDENTATIONGUIDES, SC_IV_LOOKBOTH);
137+
136138
m_sciInput = &sci;
137139
}
138140

LuaScript.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,13 @@ extern "C" __declspec(dllexport) void beNotified(SCNotification *notifyCode) {
201201
styler.Flush();
202202
break;
203203
}
204-
case NPPN_READY:
204+
case NPPN_READY: {
205+
const char *msg = LUA_COPYRIGHT "\r\n\r\n";
206+
g_console->mp_consoleDlg->writeText(strlen(msg), msg);
205207
isReady = true;
206208
LuaExtension::Instance().OnReady();
207209
break;
210+
}
208211
case NPPN_LANGCHANGED:
209212
LuaExtension::Instance().OnLangChange();
210213
break;

0 commit comments

Comments
 (0)