diff options
author | nyamatongwe <unknown> | 2006-12-31 22:25:37 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-12-31 22:25:37 +0000 |
commit | c48897c8f67c8f4096fdb51269ec478b45694f7d (patch) | |
tree | 19ac7fe3a1e8ead88f467e7aa4808860930ca86f /src/ContractionState.cxx | |
parent | da1ad1ff7405b0b6ee3b02e1d07b83b617d53c9b (diff) | |
download | scintilla-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/ContractionState.cxx')
-rw-r--r-- | src/ContractionState.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 3d021b080..49148317c 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -208,11 +208,11 @@ bool ContractionState::SetVisible(int lineDocStart, int lineDocEnd, bool visible if (lines[line].visible != visible) { delta += visible ? lines[line].height : -lines[line].height; lines[line].visible = visible; + valid = false; } } } linesInDisplay += delta; - valid = false; return delta != 0; } |