Skip to content

Commit

Permalink
Fix a bug where the document map highlights incorrectly when the view…
Browse files Browse the repository at this point in the history
… is scrolled past the end of the file.

Fix notepad-plus-plus#4579, close notepad-plus-plus#4580
  • Loading branch information
Kered13 authored and donho committed Jun 21, 2018
1 parent 4d31d80 commit 2e11a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/WinControls/DocumentMap/documentMap.cpp
Expand Up @@ -248,7 +248,7 @@ void DocumentMap::scrollMap()
if (lowerY == 0)
{
auto lineHeight = _pMapView->execute(SCI_TEXTHEIGHT, firstVisibleDocLine);
lowerY = nbLine * lineHeight + firstVisibleDocLine;
lowerY = nbLine * lineHeight + higherY;
}
}
else
Expand Down

0 comments on commit 2e11a45

Please sign in to comment.