aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-09-18 01:34:49 +0000
committernyamatongwe <devnull@localhost>2000-09-18 01:34:49 +0000
commitecd2ce7e4429a02ceccdefb505ec0cde50cc1315 (patch)
treef0004a58a3834a1dc59b3f1f5be47501de199382 /src
parentb615d63b8bff7320c123fdc1dc486c3ff48cf6cd (diff)
downloadscintilla-mirror-ecd2ce7e4429a02ceccdefb505ec0cde50cc1315.tar.gz
Added patch from Eric Hougaard to send the length in the need shown
notification.
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 4c3f46739..698bb65d2 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1804,7 +1804,7 @@ void Editor::NotifyModified(Document*, DocModification mh, void *) {
// Some lines are hidden so may need shown.
// TODO: check if the modified area is hidden.
if (mh.modificationType & SC_MOD_BEFOREINSERT) {
- NotifyNeedShown(mh.position, 0);
+ NotifyNeedShown(mh.position, mh.length);
} else if (mh.modificationType & SC_MOD_BEFOREDELETE) {
NotifyNeedShown(mh.position, mh.length);
}