Fix a bug where the document map highlights incorrectly when the view is scrolled past the end of the file.

Fix #4579, close #4580
This commit is contained in:
Derek 2018-06-12 07:00:24 -04:00 committed by Don HO
parent 32c1427c12
commit 0c55b381da

View File

@ -248,7 +248,7 @@ void DocumentMap::scrollMap()
if (lowerY == 0) if (lowerY == 0)
{ {
auto lineHeight = _pMapView->execute(SCI_TEXTHEIGHT, firstVisibleDocLine); auto lineHeight = _pMapView->execute(SCI_TEXTHEIGHT, firstVisibleDocLine);
lowerY = nbLine * lineHeight + firstVisibleDocLine; lowerY = nbLine * lineHeight + higherY;
} }
} }
else else