Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alextp committed Oct 12, 2020
1 parent e34e540 commit 1391fc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions atsynedit/atsynedit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2211,8 +2211,10 @@ procedure TATSynEdit.SetWrapMode(AValue: TATSynWrapMode);
FWrapMode:= AValue;

FWrapUpdateNeeded:= true;
UpdateWrapInfo; //helps to solve https://github.com/Alexey-T/CudaText/issues/2879
//FWrapUpdateNeeded:=true and Update() is not enough

if HandleAllocated then //required for Win32
UpdateWrapInfo; //helps to solve https://github.com/Alexey-T/CudaText/issues/2879
//FWrapUpdateNeeded:=true and Update() is not enough

if FWrapMode<>cWrapOff then
FScrollHorz.SetZero;
Expand Down

0 comments on commit 1391fc8

Please sign in to comment.