Skip to content

Commit

Permalink
Enhanced Home key works like in VS Code. It also matches the way the …
Browse files Browse the repository at this point in the history
…enhanced END key works.
  • Loading branch information
pyscripter committed Nov 28, 2024
1 parent 10979f4 commit 5a4200a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/SynEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8278,10 +8278,10 @@ procedure TCustomSynEdit.DoHomeKey(Selection: Boolean);
MaxX := Length(S);
while (FirstNonBlank <= MaxX) and IsWhiteChar(S[FirstNonBlank]) do
Inc(FirstNonBlank);
if (NewPos.Column > FirstNonBlank) or (NewPos.Column = 1) then
NewPos.Column := FirstNonBlank
if NewPos.Column = FirstNonBlank then
NewPos.Column := 1
else
NewPos.Column := 1;
NewPos.Column := FirstNonBlank;
end
else
NewPos.Column := 1;
Expand Down

0 comments on commit 5a4200a

Please sign in to comment.