Backport a bugfix from Scite to fix folding problems.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2454 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-04-08 14:20:24 +00:00
parent 9024500f92
commit 3ba95e358d
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
* src/document.c, src/document.h, src/main.c, src/project.c:
Add document_new_file_if_non_open() to open new documents if no
other documents are open.
* src/editor.c:
Backport a bugfix from Scite to fix folding problems.
2008-04-06 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>

View File

@ -342,7 +342,7 @@ static void fold_changed(ScintillaObject *sci, gint line, gint levelNow, gint le
expand(sci, &line, TRUE, FALSE, 0, levelPrev);
}
}
else if (! (levelNow & SC_FOLDLEVELWHITEFLAG) &&
if (! (levelNow & SC_FOLDLEVELWHITEFLAG) &&
((levelPrev & SC_FOLDLEVELNUMBERMASK) > (levelNow & SC_FOLDLEVELNUMBERMASK)))
{
/* See if should still be hidden */