aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-01-14 11:16:41 +0000
committernyamatongwe <devnull@localhost>2004-01-14 11:16:41 +0000
commita31a26357227bbd2d8dc26777a4f327cd46b0745 (patch)
treeea254339bacfa358d9fa4ee87eee95486b54beb9 /src
parent2d498f5ff3b8d6a527d3ca8b3c23e4171af56a8f (diff)
downloadscintilla-mirror-a31a26357227bbd2d8dc26777a4f327cd46b0745.tar.gz
Fixed GetFoldParent to return -1 for all top level lines.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 9f5018c7e..25cb0de9f 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -206,7 +206,7 @@ int Document::GetLastChild(int lineParent, int level) {
}
int Document::GetFoldParent(int line) {
- int level = GetLevel(line);
+ int level = GetLevel(line) & SC_FOLDLEVELNUMBERMASK;
int lineLook = line - 1;
while ((lineLook > 0) && (
(!(GetLevel(lineLook) & SC_FOLDLEVELHEADERFLAG)) ||