aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMarko Njezic <devnull@localhost>2011-06-07 11:49:24 +0200
committerMarko Njezic <devnull@localhost>2011-06-07 11:49:24 +0200
commit2fbfe87117ed370e1e7020f632b2e00aa96bff3d (patch)
treeb71a19c3d54e6150a45ca972fdb6373bd7448671 /src
parent264af00abad56559c4bcdaddccade3c3fc14e240 (diff)
downloadscintilla-mirror-2fbfe87117ed370e1e7020f632b2e00aa96bff3d.tar.gz
Call HiddenLines() only when needed.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 6a8d9c80e..2edfbfa94 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4538,7 +4538,7 @@ void Editor::NotifyModified(Document *, DocModification mh, void *) {
braces[0] = MovePositionForDeletion(braces[0], mh.position, mh.length);
braces[1] = MovePositionForDeletion(braces[1], mh.position, mh.length);
}
- if (cs.HiddenLines()) {
+ if ((mh.modificationType & (SC_MOD_BEFOREINSERT | SC_MOD_BEFOREDELETE)) && cs.HiddenLines()) {
// Some lines are hidden so may need shown.
// TODO: check if the modified area is hidden.
if (mh.modificationType & SC_MOD_BEFOREINSERT) {