Skip to content

Commit

Permalink
cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Apr 25, 2024
1 parent f56afc5 commit e214f58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/proc_editor_micromap.pas
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ procedure EditorPaintMicromap(Ed: TATSynEdit; ACanvas: TCanvas; const ARect: TRe
if Ed.OptLastLineOnTop then
NScaleDiv:= Max(1, NScaleDiv+Ed.GetVisibleLines-1);

//decrement NRectHeight if editor has too many lines
NRectHeight:= ARect.Height;
i:= Ed.GetVisibleLines * NRectHeight div NScaleDiv;
if i < UiOps.MicromapMinViewareaHeight then
Expand Down

0 comments on commit e214f58

Please sign in to comment.