aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authorMarkus Nißl <unknown>2016-01-31 14:23:34 +1100
committerMarkus Nißl <unknown>2016-01-31 14:23:34 +1100
commitdc4cef62cd7114c9a96f40005aeb983a7ea0c701 (patch)
treec3429ba1c93c611f930e6687587949e8f5b6f705 /src/Document.h
parented49683644c1af5fc51791878ca9b9c6d7c04d72 (diff)
downloadscintilla-mirror-dc4cef62cd7114c9a96f40005aeb983a7ea0c701.tar.gz
Bug [#1799]. Folds unfolded when two fold regions are merged by either deleting
an intervening line or changing its fold level by adding characters. Add LevelNumber function to simplify expressions implmenting folding.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h
index cc3873f59..d82aa46b5 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -171,6 +171,10 @@ public:
class Document;
+inline int LevelNumber(int level) {
+ return level & SC_FOLDLEVELNUMBERMASK;
+}
+
class LexInterface {
protected:
Document *pdoc;