diff options
author | nyamatongwe <devnull@localhost> | 2005-06-15 12:04:40 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-06-15 12:04:40 +0000 |
commit | c10985d18322e76f1167719948ff2a6979feca07 (patch) | |
tree | bf81245b7b0fd35ab94e3985b3e50fff31514376 | |
parent | 3f40041b29692816c2498a5a0db38960badc2296 (diff) | |
download | scintilla-mirror-c10985d18322e76f1167719948ff2a6979feca07.tar.gz |
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.
-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 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); } |