diff options
author | Marko Njezic <unknown> | 2011-06-07 11:49:24 +0200 |
---|---|---|
committer | Marko Njezic <unknown> | 2011-06-07 11:49:24 +0200 |
commit | 3e7418a92bcc8839ad4d8e944a0b828066491f0f (patch) | |
tree | b7aa5144c066937bbf0eae3a166703e40209eb62 /src/Editor.cxx | |
parent | cdc087403e5f0c230cf4b0fc6f9049655934eb69 (diff) | |
download | scintilla-mirror-3e7418a92bcc8839ad4d8e944a0b828066491f0f.tar.gz |
Call HiddenLines() only when needed.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
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) { |