diff options
author | nyamatongwe <devnull@localhost> | 2013-06-11 09:34:45 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-06-11 09:34:45 +1000 |
commit | d870823b04a44657c79881110bb22c64607cd0d7 (patch) | |
tree | e91b53243345081e28ef2ec5b6df644b5ad57429 /src | |
parent | 2799cbaec88447160ad6dd1ab664a53fed5c2fb0 (diff) | |
download | scintilla-mirror-d870823b04a44657c79881110bb22c64607cd0d7.tar.gz |
Fix a bug with word wrap where the last line could be shown twice.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 389b25346..f02fdf0f1 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4742,6 +4742,8 @@ void Editor::NotifyModified(Document *, DocModification mh, void *) { // Update contraction state for inserted and removed lines // lineOfPos should be calculated in context of state before modification, shouldn't it int lineOfPos = pdoc->LineFromPosition(mh.position); + if (mh.position > pdoc->LineStart(lineOfPos)) + lineOfPos++; // Affecting subsequent lines if (mh.linesAdded > 0) { cs.InsertLines(lineOfPos, mh.linesAdded); } else { |