aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Editor.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ac8cb850c..1735de498 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -822,10 +822,15 @@ void Editor::PaintSelMargin(Surface *surfWindow, PRectangle &rc) {
needWhiteClosure = false;
}
} else if (levelNum > SC_FOLDLEVELBASE) {
- if (levelNextNum < levelNum)
- marks |= 1 << SC_MARKNUM_FOLDERTAIL;
- else
+ if (levelNextNum < levelNum) {
+ if (levelNextNum > SC_FOLDLEVELBASE) {
+ marks |= 1 << SC_MARKNUM_FOLDERMIDTAIL;
+ } else {
+ marks |= 1 << SC_MARKNUM_FOLDERTAIL;
+ }
+ } else {
marks |= 1 << SC_MARKNUM_FOLDERSUB;
+ }
}
} else if (levelNum > SC_FOLDLEVELBASE) {
if (levelNextNum < levelNum) {