diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-16 14:26:30 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-16 14:26:30 +1000 |
commit | 2517f7aa22c987919203c6abc21c52242488d3cc (patch) | |
tree | 740376d08868148ea0969e624545b3575d0f7fbb | |
parent | fc3c942d113a28089bffd94ff5addc79f3eef673 (diff) | |
download | scintilla-mirror-2517f7aa22c987919203c6abc21c52242488d3cc.tar.gz |
Backport: Convert topLine from a screen line to a document line before using it to find a
position.
Backport of changeset 6691:372b160180b3.
-rw-r--r-- | src/Editor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 708210e27..79fe1addc 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2561,7 +2561,8 @@ void Editor::NotifyModified(Document *, DocModification mh, void *) { pdoc->IncrementStyleClock(); } if (paintState == notPainting) { - if (mh.position < pdoc->LineStart(topLine)) { + const Sci::Line lineDocTop = pcs->DocFromDisplay(topLine); + if (mh.position < pdoc->LineStart(lineDocTop)) { // Styling performed before this view Redraw(); } else { |