aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2016-01-31 14:38:11 +1100
committerNeil <nyamatongwe@gmail.com>2016-01-31 14:38:11 +1100
commitd94214b41cc24a20d69076a4f6dbd43a48d137e2 (patch)
tree6f829cecd7a2f4e4d54e9508c4d7f3d5b9c19256 /src/EditView.cxx
parentdc4cef62cd7114c9a96f40005aeb983a7ea0c701 (diff)
downloadscintilla-mirror-d94214b41cc24a20d69076a4f6dbd43a48d137e2.tar.gz
Replace expressions to find level number of a fold level with function call.
Simplifies code by removing any precedence issues and is shorter.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r--src/EditView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index fc98c3d6d..805971a88 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -1744,7 +1744,7 @@ static void DrawFoldLines(Surface *surface, const EditModel &model, const ViewSt
const int level = model.pdoc->GetLevel(line);
const int levelNext = model.pdoc->GetLevel(line + 1);
if ((level & SC_FOLDLEVELHEADERFLAG) &&
- ((level & SC_FOLDLEVELNUMBERMASK) < (levelNext & SC_FOLDLEVELNUMBERMASK))) {
+ (LevelNumber(level) < LevelNumber(levelNext))) {
// Paint the line above the fold
if ((expanded && (model.foldFlags & SC_FOLDFLAG_LINEBEFORE_EXPANDED))
||