diff --git a/lexers/LexVB.cxx b/lexers/LexVB.cxx index 1f47c029..cf625d06 100644 --- a/lexers/LexVB.cxx +++ b/lexers/LexVB.cxx @@ -363,6 +363,9 @@ void LexerVB::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, ID } void LexerVB::Fold(Sci_PositionU startPos, Sci_Position length, int, IDocument *pAccess) { + if (!options.fold) + return; + Accessor styler(pAccess, nullptr); const Sci_Position endPos = startPos + length;