aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-08-10 10:38:11 +0000
committernyamatongwe <unknown>2001-08-10 10:38:11 +0000
commit66f1947884ee7dd16f9c3d6a3a015b87facc79fb (patch)
tree6bbd6ffad87987108b8f115dc7e956a90938afde /src
parent94011bc80e53c2a66a256af7ed3f007a1f446726 (diff)
downloadscintilla-mirror-66f1947884ee7dd16f9c3d6a3a015b87facc79fb.tar.gz
Fixed some problems with the outline folding markers.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 600938fa3..702c6dc9a 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -816,15 +816,20 @@ void Editor::PaintSelMargin(Surface *surfWindow, PRectangle &rc) {
marks |= 1 << SC_MARKNUM_FOLDERSUB;
} else if (levelNum > SC_FOLDLEVELBASE) {
marks |= 1 << SC_MARKNUM_FOLDERMIDTAIL;
+ needWhiteClosure = false;
} else {
marks |= 1 << SC_MARKNUM_FOLDERTAIL;
needWhiteClosure = false;
}
} else if (levelNum > SC_FOLDLEVELBASE) {
- marks |= 1 << SC_MARKNUM_FOLDERSUB;
+ if (levelNextNum < levelNum)
+ marks |= 1 << SC_MARKNUM_FOLDERTAIL;
+ else
+ marks |= 1 << SC_MARKNUM_FOLDERSUB;
}
} else if (levelNum > SC_FOLDLEVELBASE) {
if (levelNextNum < levelNum) {
+ needWhiteClosure = false;
if (levelNext & SC_FOLDLEVELWHITEFLAG) {
marks |= 1 << SC_MARKNUM_FOLDERSUB;
needWhiteClosure = true;