aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-12-31 22:25:37 +0000
committernyamatongwe <unknown>2006-12-31 22:25:37 +0000
commitc48897c8f67c8f4096fdb51269ec478b45694f7d (patch)
tree19ac7fe3a1e8ead88f467e7aa4808860930ca86f /src/CellBuffer.cxx
parentda1ad1ff7405b0b6ee3b02e1d07b83b617d53c9b (diff)
downloadscintilla-mirror-c48897c8f67c8f4096fdb51269ec478b45694f7d.tar.gz
Fixed folding slowness when pasting a large amount of text on an empty line. Does not
propagate wgitespace flag onto new lines which made them subordinate. Setting a line visible in contraction state now only invalidates the data structure if line currently not visible.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index a6c0cf577..bd124d011 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -225,7 +225,7 @@ void LineVector::InsertValue(int pos, int value) {
} else if (pos == (lines - 1)) { // Last line will not be a folder
levels[pos] = SC_FOLDLEVELBASE;
} else {
- levels[pos] = levels[pos - 1];
+ levels[pos] = levels[pos - 1] & ~SC_FOLDLEVELWHITEFLAG;
}
}
}