diff options
author | nyamatongwe <devnull@localhost> | 2005-06-16 12:49:11 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-06-16 12:49:11 +0000 |
commit | 211af257d6afe80dcb9c09016726c92a64c31d50 (patch) | |
tree | 080f4859b3af1b491553c50f4e9da30b6d58e5b7 /src/CellBuffer.cxx | |
parent | c10985d18322e76f1167719948ff2a6979feca07 (diff) | |
download | scintilla-mirror-211af257d6afe80dcb9c09016726c92a64c31d50.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--; } |