aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-06-07 11:30:23 +1000
committernyamatongwe <unknown>2011-06-07 11:30:23 +1000
commitcfd7180e33b49c884738f4975584f0d010a28b99 (patch)
tree50f88b12e28928c8d9f2daeb5a30ae5183e92dd7 /src/Editor.cxx
parentbd88866db20ffb28513e713957ba8c27e47a8a08 (diff)
downloadscintilla-mirror-cfd7180e33b49c884738f4975584f0d010a28b99.tar.gz
Make SCN_NEEDSHOWN notification work when word wrap is enabled.
This fixes the last remaining issue from bug #3291579. From Marko Njezic
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index dee1d8863..e7f768e98 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.LinesDisplayed() < cs.LinesInDoc()) {
+ if (cs.HiddenLines()) {
// Some lines are hidden so may need shown.
// TODO: check if the modified area is hidden.
if (mh.modificationType & SC_MOD_BEFOREINSERT) {