mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
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:
parent
17628b7dd9
commit
d1256c3c83
@ -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"), reinterpret_cast<LPARAM>("1"));
|
||||||
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold.compact"), reinterpret_cast<LPARAM>("0"));
|
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold.compact"), reinterpret_cast<LPARAM>("0"));
|
||||||
|
|
||||||
execute(SCI_SETPROPERTY, reinterpret_cast<WPARAM>("fold.comment"), reinterpret_cast<LPARAM>("1"));
|
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)
|
void ScintillaEditView::makeStyle(LangType language, const TCHAR **keywordArray)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user