diff options
author | nyamatongwe <unknown> | 2001-08-10 10:38:11 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-10 10:38:11 +0000 |
commit | 66f1947884ee7dd16f9c3d6a3a015b87facc79fb (patch) | |
tree | 6bbd6ffad87987108b8f115dc7e956a90938afde /src/Editor.cxx | |
parent | 94011bc80e53c2a66a256af7ed3f007a1f446726 (diff) | |
download | scintilla-mirror-66f1947884ee7dd16f9c3d6a3a015b87facc79fb.tar.gz |
Fixed some problems with the outline folding markers.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 7 |
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; |