From ebf5266f9fdadabb7c3545fd08e4520004cfb100 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 31 Dec 2006 22:25:37 +0000 Subject: 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. --- src/CellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CellBuffer.cxx') 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; } } } -- cgit v1.2.3