Skip to content

Commit

Permalink
cmds Sort: dont change caret pos
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Mar 18, 2020
1 parent 35f9c71 commit e16c9a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions atsynedit/atsynedit_cmd_editing.inc
Original file line number Diff line number Diff line change
Expand Up @@ -970,13 +970,8 @@ begin
Caret.GetSelLines(NFrom, NTo);
end;

DoCaretSingle(0, 0);
Strings.ActionSort(AAction, NFrom, NTo);

if NFrom>=0 then
DoCaretSingle(0, NTo+1, 0, NFrom);

Result:= [cResultText, cResultCaretTop];
Result:= [cResultText];
end;

function TATSynEdit.DoCommand_DeleteAllBlanks: TATCommandResults;
Expand Down

0 comments on commit e16c9a3

Please sign in to comment.