mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 04:44:40 +02:00
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:
parent
32c1427c12
commit
0c55b381da
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user