From 66f1947884ee7dd16f9c3d6a3a015b87facc79fb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 10 Aug 2001 10:38:11 +0000 Subject: Fixed some problems with the outline folding markers. --- src/Editor.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3