diff options
author | Marko Njezic <devnull@localhost> | 2011-06-07 11:49:24 +0200 |
---|---|---|
committer | Marko Njezic <devnull@localhost> | 2011-06-07 11:49:24 +0200 |
commit | 2fbfe87117ed370e1e7020f632b2e00aa96bff3d (patch) | |
tree | b71a19c3d54e6150a45ca972fdb6373bd7448671 | |
parent | 264af00abad56559c4bcdaddccade3c3fc14e240 (diff) | |
download | scintilla-mirror-2fbfe87117ed370e1e7020f632b2e00aa96bff3d.tar.gz |
Call HiddenLines() only when needed.
-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) { |