aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-02-23 10:20:50 +0000
committernyamatongwe <devnull@localhost>2001-02-23 10:20:50 +0000
commit2337bf3bc8e14d24d3e4b33ac8ef8e43d8811a64 (patch)
treead73d9764ee25db1be72e3ac0dbb42088af0db60
parent3f7a471047fddc17b64714304e9282efe812b0fc (diff)
downloadscintilla-mirror-2337bf3bc8e14d24d3e4b33ac8ef8e43d8811a64.tar.gz
Patch from Steve to change name of option for folds owning following blank
lines so they disppear when folded to fold.compact.
-rw-r--r--src/LexHTML.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index d851c7620..1c68f576b 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -341,7 +341,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
int scriptLanguage = ScriptOfState(state);
bool fold = styler.GetPropertyInt("fold");
- bool wrapFold = styler.GetPropertyInt("fold.wrap",0);
+ bool foldCompact = styler.GetPropertyInt("fold.compact",1);
int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK;
int levelCurrent = levelPrev;
int visibleChars;
@@ -369,7 +369,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
continue;
}
- if ((!isspacechar(ch) || wrapFold) && fold)
+ if ((!isspacechar(ch) || !foldCompact) && fold)
visibleChars++;
// decide what is the current state to print (depending of the script tag)