From c10985d18322e76f1167719948ff2a6979feca07 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 15 Jun 2005 12:04:40 +0000 Subject: When inserting text, the needshown notification is made for a 0 length range so that only the insertion point is unfolded. Previously the length of the insertion was used but that range is not yet in the document. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index b56e8f303..82675d3a2 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3688,7 +3688,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, mh.length); + NotifyNeedShown(mh.position, 0); } else if (mh.modificationType & SC_MOD_BEFOREDELETE) { NotifyNeedShown(mh.position, mh.length); } -- cgit v1.2.3