aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-08-10 10:38:11 +0000
committernyamatongwe <devnull@localhost>2001-08-10 10:38:11 +0000
commitdc66da708db1dc5886548b6d5d2837b02b914fa1 (patch)
tree6bbd6ffad87987108b8f115dc7e956a90938afde
parentf383f22afc060b66f9c57213144f06b8cae7ccd4 (diff)
downloadscintilla-mirror-dc66da708db1dc5886548b6d5d2837b02b914fa1.tar.gz
Fixed some problems with the outline folding markers.
-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;