diff options
author | nyamatongwe <unknown> | 2005-06-16 12:49:11 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-06-16 12:49:11 +0000 |
commit | 88118352c3a106ef9425f47776cb6549494cc63e (patch) | |
tree | 080f4859b3af1b491553c50f4e9da30b6d58e5b7 /src/CellBuffer.cxx | |
parent | 0a42464be190d1a6614f4c260ef3ee0db6fc27aa (diff) | |
download | scintilla-mirror-88118352c3a106ef9425f47776cb6549494cc63e.tar.gz |
Fixes to folding in Scintilla and SciTE as described in Bug #1219354.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 2bb4f5a6c..8200d4a59 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -254,9 +254,14 @@ void LineVector::Remove(int pos) { linesData[i] = linesData[i + 1]; } if (levels) { + // Move up following lines but merge header flag from this line + // to line before to avoid a temporary disappearence causing expansion. + int firstHeader = levels[pos] & SC_FOLDLEVELHEADERFLAG; for (int j = pos; j < lines; j++) { levels[j] = levels[j + 1]; } + if (pos > 0) + levels[pos-1] |= firstHeader; } lines--; } |