Fix modified line marker in kate minimap
ClosedPublic

Authored by davidedmundson on May 12 2020, 2:39 PM.

Details

Summary

Our pixmap is the size of the number of lines in the document. When
rendering the pixel for the modified marker we want to take a ratio of
currentline to lines in the pixmap.

The height of the groove isn't relevant.

Test Plan

Create a 10000 line empty document
Added some line in the middle
New line and orange dot appeared in the same place

Diff Detail

Repository
R39 KTextEditor
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.May 12 2020, 2:39 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptMay 12 2020, 2:39 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
davidedmundson requested review of this revision.May 12 2020, 2:39 PM

What about ktexteditor?

Ah right, that's still here.

sars accepted this revision.May 12 2020, 3:43 PM
sars added a subscriber: sars.

Thanks for the patch! I had not noticed the problem before :)

This revision is now accepted and ready to land.May 12 2020, 3:43 PM
This revision was automatically updated to reflect the committed changes.