We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a36ae03 commit 86f6330Copy full SHA for 86f6330
LuaConsole.cpp
@@ -119,6 +119,14 @@ bool LuaConsole::processNotification(const SCNotification *scn) {
119
if ((scn->ch == '.' || scn->ch == ':') && m_sciInput->Call(SCI_GETCURRENTPOS) > 1) {
120
showAutoCompletion();
121
}
122
+ else if (scn->ch == '\n') {
123
+ int curPos = m_sciInput->Call(SCI_GETCURRENTPOS);
124
+ int curLine = m_sciInput->Call(SCI_LINEFROMPOSITION, curPos);
125
+ int prevIndent = m_sciInput->Call(SCI_GETLINEINDENTATION, curLine - 1);
126
+ m_sciInput->Call(SCI_SETLINEINDENTATION, curLine, prevIndent);
127
+ curPos = m_sciInput->Call(SCI_GETLINEINDENTPOSITION, curLine);
128
+ m_sciInput->Call(SCI_SETEMPTYSELECTION, curPos);
129
+ }
130
break;
131
132
0 commit comments