aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lexers/LexPython.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx
index df80e499b..6cfb03b5e 100644
--- a/lexers/LexPython.cxx
+++ b/lexers/LexPython.cxx
@@ -15,6 +15,7 @@
#include <string>
#include <vector>
#include <map>
+#include <algorithm>
#include "ILexer.h"
#include "Scintilla.h"
@@ -929,7 +930,7 @@ void SCI_METHOD LexerPython::Fold(Sci_PositionU startPos, Sci_Position length, i
}
const int levelAfterComments = ((lineNext < docLines) ? indentNext & SC_FOLDLEVELNUMBERMASK : minCommentLevel);
- const int levelBeforeComments = Maximum(indentCurrentLevel, levelAfterComments);
+ const int levelBeforeComments = std::max(indentCurrentLevel, levelAfterComments);
// Now set all the indent levels on the lines we skipped
// Do this from end to start. Once we encounter one line