Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Oct 11, 2020
1 parent fd8b6ea commit e34e540
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atsynedit/atsynedit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,10 @@ procedure TATSynEdit.SetWrapMode(AValue: TATSynWrapMode);

NLine:= LineTop;
FWrapMode:= AValue;

FWrapUpdateNeeded:= true;
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 e34e540

Please sign in to comment.