Fix indent indicators continue to following code blocks for Python

Fix indent indicators continue to following code blocks even if there is no indent for Python

Fix #5815
This commit is contained in:
Don HO 2019-06-23 16:15:57 +02:00
parent 17628b7dd9
commit d1256c3c83
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -1229,8 +1229,17 @@ void ScintillaEditView::setLexer(int lexerID, LangType langType, int whichList)
}
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold"), reinterpret_cast<LPARAM>("1"));
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold.compact"), reinterpret_cast<LPARAM>("0"));
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold.comment"), reinterpret_cast<LPARAM>("1"));
ScintillaViewParams & svp = (ScintillaViewParams &)_pParameter->getSVP();
if (svp._indentGuideLineShow)
{
int currentIndentMode = execute(SCI_GETINDENTATIONGUIDES);
int docIndentMode = isFoldIndentationBased() ? SC_IV_LOOKFORWARD : SC_IV_LOOKBOTH;
if (currentIndentMode != docIndentMode)
execute(SCI_SETINDENTATIONGUIDES, docIndentMode);
}
}
void ScintillaEditView::makeStyle(LangType language, const TCHAR **keywordArray)