Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Jun 24, 2020
1 parent f8d513d commit 9f6d341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atsynedit/atsynedit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ function TATSynEdit.UpdateScrollbars(AdjustSmoothPos: boolean): boolean;
with FScrollVert do
begin
NPage:= Max(1, GetVisibleLines)-1;
NMax:= Max(1, FWrapInfo.Count-1);
NMax:= Max(0, FWrapInfo.Count-1); //must be 0 for single line text
if FOptLastLineOnTop then
Inc(NMax, NPage);
NPosLast:= Max(0, NMax-NPage);
Expand Down

0 comments on commit 9f6d341

Please sign in to comment.