diff options
author | nyamatongwe <unknown> | 2001-08-10 07:51:38 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-10 07:51:38 +0000 |
commit | 1a7a66dd32c4d0a74ec78a7ff48b71ecbfb90f50 (patch) | |
tree | 6a77531f3b80defd80fd8736d392155f10ec7be7 /src/LexCPP.cxx | |
parent | cdfb090f2206c87a86dd5e55560ed853db39f983 (diff) | |
download | scintilla-mirror-1a7a66dd32c4d0a74ec78a7ff48b71ecbfb90f50.tar.gz |
Folding is started 1 line earlier than is being restyled to handle cases
where the deletion of a line end is leading to a bad fold state for that
line.
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r-- | src/LexCPP.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index c5e55df8b..0b1e532c4 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -335,11 +335,6 @@ static void FoldCppDoc(unsigned int startPos, int length, int initStyle, WordLis unsigned int endPos = startPos + length; int visibleChars = 0; int lineCurrent = styler.GetLine(startPos); - // Move back one line in case deletion wrecked current line fold state - if (lineCurrent > 0) { - lineCurrent--; - startPos = styler.LineStart(lineCurrent); - } int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; |